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::diagnostic_outside_of_impl)]
|
||||||
#![allow(rustc::untranslatable_diagnostic)]
|
#![allow(rustc::untranslatable_diagnostic)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate bitflags;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate tracing;
|
extern crate tracing;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -49,7 +49,7 @@ pub struct CodegenFnAttrs {
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, TyEncodable, TyDecodable, HashStable)]
|
#[derive(Clone, Copy, PartialEq, Eq, TyEncodable, TyDecodable, HashStable)]
|
||||||
pub struct CodegenFnAttrFlags(u32);
|
pub struct CodegenFnAttrFlags(u32);
|
||||||
bitflags! {
|
bitflags::bitflags! {
|
||||||
impl CodegenFnAttrFlags: u32 {
|
impl CodegenFnAttrFlags: u32 {
|
||||||
/// `#[cold]`: a hint to LLVM that this function, when called, is never on
|
/// `#[cold]`: a hint to LLVM that this function, when called, is never on
|
||||||
/// the hot path.
|
/// 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)]
|
#[derive(Clone, Copy, PartialEq, Eq, Hash, HashStable, TyEncodable, TyDecodable)]
|
||||||
pub struct AdtFlags(u16);
|
pub struct AdtFlags(u16);
|
||||||
bitflags! {
|
bitflags::bitflags! {
|
||||||
impl AdtFlags: u16 {
|
impl AdtFlags: u16 {
|
||||||
const NO_ADT_FLAGS = 0;
|
const NO_ADT_FLAGS = 0;
|
||||||
/// Indicates whether the ADT is an enum.
|
/// Indicates whether the ADT is an enum.
|
||||||
|
|
|
@ -1224,7 +1224,7 @@ pub struct Destructor {
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, HashStable, TyEncodable, TyDecodable)]
|
#[derive(Clone, Copy, PartialEq, Eq, HashStable, TyEncodable, TyDecodable)]
|
||||||
pub struct VariantFlags(u8);
|
pub struct VariantFlags(u8);
|
||||||
bitflags! {
|
bitflags::bitflags! {
|
||||||
impl VariantFlags: u8 {
|
impl VariantFlags: u8 {
|
||||||
const NO_VARIANT_FLAGS = 0;
|
const NO_VARIANT_FLAGS = 0;
|
||||||
/// Indicates whether the field list of this variant is `#[non_exhaustive]`.
|
/// Indicates whether the field list of this variant is `#[non_exhaustive]`.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
bitflags! {
|
bitflags::bitflags! {
|
||||||
/// Flags that we track on types. These flags are propagated upwards
|
/// Flags that we track on types. These flags are propagated upwards
|
||||||
/// through the type during type construction, so that we can quickly check
|
/// through the type during type construction, so that we can quickly check
|
||||||
/// whether the type has various kinds of types in it without recursing
|
/// whether the type has various kinds of types in it without recursing
|
||||||
|
|
|
@ -8,9 +8,6 @@
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
extern crate self as rustc_type_ir;
|
extern crate self as rustc_type_ir;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate bitflags;
|
|
||||||
|
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
use rustc_data_structures::sync::Lrc;
|
use rustc_data_structures::sync::Lrc;
|
||||||
#[cfg(feature = "nightly")]
|
#[cfg(feature = "nightly")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue