Bump bitflags

This commit is contained in:
Laurențiu Nicola 2023-04-17 18:42:59 +03:00
parent 840cfd0862
commit 160ab88bb9
6 changed files with 22 additions and 15 deletions

View file

@ -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"] }

View file

@ -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`.

View file

@ -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;

View file

@ -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"

View file

@ -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;