Remove extern crate bitflags
from a couple of crates.
This commit is contained in:
parent
7418aa1a07
commit
1ab34f063b
6 changed files with 4 additions and 9 deletions
|
@ -65,8 +65,6 @@
|
|||
#![allow(rustc::diagnostic_outside_of_impl)]
|
||||
#![allow(rustc::untranslatable_diagnostic)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
#[macro_use]
|
||||
|
|
|
@ -49,7 +49,7 @@ pub struct CodegenFnAttrs {
|
|||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, TyEncodable, TyDecodable, HashStable)]
|
||||
pub struct CodegenFnAttrFlags(u32);
|
||||
bitflags! {
|
||||
bitflags::bitflags! {
|
||||
impl CodegenFnAttrFlags: u32 {
|
||||
/// `#[cold]`: a hint to LLVM that this function, when called, is never on
|
||||
/// the hot path.
|
||||
|
|
|
@ -27,7 +27,7 @@ use super::{Destructor, FieldDef, GenericPredicates, Ty, TyCtxt, VariantDef, Var
|
|||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, HashStable, TyEncodable, TyDecodable)]
|
||||
pub struct AdtFlags(u16);
|
||||
bitflags! {
|
||||
bitflags::bitflags! {
|
||||
impl AdtFlags: u16 {
|
||||
const NO_ADT_FLAGS = 0;
|
||||
/// Indicates whether the ADT is an enum.
|
||||
|
|
|
@ -1224,7 +1224,7 @@ pub struct Destructor {
|
|||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, HashStable, TyEncodable, TyDecodable)]
|
||||
pub struct VariantFlags(u8);
|
||||
bitflags! {
|
||||
bitflags::bitflags! {
|
||||
impl VariantFlags: u8 {
|
||||
const NO_VARIANT_FLAGS = 0;
|
||||
/// Indicates whether the field list of this variant is `#[non_exhaustive]`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue