mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Bump bitflags
This commit is contained in:
parent
840cfd0862
commit
160ab88bb9
6 changed files with 22 additions and 15 deletions
|
@ -14,7 +14,7 @@ doctest = false
|
|||
[dependencies]
|
||||
anymap = "1.0.0-beta.2"
|
||||
arrayvec = "0.7.2"
|
||||
bitflags = "1.3.2"
|
||||
bitflags = "2.1.0"
|
||||
cov-mark = "2.0.0-pre.1"
|
||||
# We need to freeze the version of the crate, as the raw-api feature is considered unstable
|
||||
dashmap = { version = "=5.4.0", features = ["raw-api"] }
|
||||
|
|
|
@ -44,6 +44,7 @@ pub struct StructData {
|
|||
}
|
||||
|
||||
bitflags! {
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct StructFlags: u8 {
|
||||
const NO_FLAGS = 0;
|
||||
/// Indicates whether the struct is `PhantomData`.
|
||||
|
|
|
@ -609,7 +609,7 @@ pub enum Param {
|
|||
}
|
||||
|
||||
bitflags::bitflags! {
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Default)]
|
||||
pub(crate) struct FnFlags: u8 {
|
||||
const HAS_SELF_PARAM = 1 << 0;
|
||||
const HAS_BODY = 1 << 1;
|
||||
|
|
|
@ -15,7 +15,7 @@ doctest = false
|
|||
cov-mark = "2.0.0-pre.1"
|
||||
itertools = "0.10.5"
|
||||
arrayvec = "0.7.2"
|
||||
bitflags = "1.3.2"
|
||||
bitflags = "2.1.0"
|
||||
smallvec.workspace = true
|
||||
ena = "0.14.0"
|
||||
either = "1.7.0"
|
||||
|
|
|
@ -131,7 +131,7 @@ pub(crate) fn unify(
|
|||
}
|
||||
|
||||
bitflags::bitflags! {
|
||||
#[derive(Default)]
|
||||
#[derive(Default, Clone, Copy)]
|
||||
pub(crate) struct TypeVariableFlags: u8 {
|
||||
const DIVERGING = 1 << 0;
|
||||
const INTEGER = 1 << 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue