@@ -398,35 +398,35 @@ pub struct CReaderCacheKey {
398398// check whether the type has various kinds of types in it without
399399// recursing over the type itself.
400400bitflags ! {
401- flags TypeFlags : u32 {
402- const HAS_PARAMS = 1 << 0 ,
403- const HAS_SELF = 1 << 1 ,
404- const HAS_TY_INFER = 1 << 2 ,
405- const HAS_RE_INFER = 1 << 3 ,
406- const HAS_RE_SKOL = 1 << 4 ,
407- const HAS_RE_EARLY_BOUND = 1 << 5 ,
408- const HAS_FREE_REGIONS = 1 << 6 ,
409- const HAS_TY_ERR = 1 << 7 ,
410- const HAS_PROJECTION = 1 << 8 ,
401+ pub struct TypeFlags : u32 {
402+ const HAS_PARAMS = 1 << 0 ;
403+ const HAS_SELF = 1 << 1 ;
404+ const HAS_TY_INFER = 1 << 2 ;
405+ const HAS_RE_INFER = 1 << 3 ;
406+ const HAS_RE_SKOL = 1 << 4 ;
407+ const HAS_RE_EARLY_BOUND = 1 << 5 ;
408+ const HAS_FREE_REGIONS = 1 << 6 ;
409+ const HAS_TY_ERR = 1 << 7 ;
410+ const HAS_PROJECTION = 1 << 8 ;
411411
412412 // FIXME: Rename this to the actual property since it's used for generators too
413- const HAS_TY_CLOSURE = 1 << 9 ,
413+ const HAS_TY_CLOSURE = 1 << 9 ;
414414
415415 // true if there are "names" of types and regions and so forth
416416 // that are local to a particular fn
417- const HAS_LOCAL_NAMES = 1 << 10 ,
417+ const HAS_LOCAL_NAMES = 1 << 10 ;
418418
419419 // Present if the type belongs in a local type context.
420420 // Only set for TyInfer other than Fresh.
421- const KEEP_IN_LOCAL_TCX = 1 << 11 ,
421+ const KEEP_IN_LOCAL_TCX = 1 << 11 ;
422422
423423 // Is there a projection that does not involve a bound region?
424424 // Currently we can't normalize projections w/ bound regions.
425- const HAS_NORMALIZABLE_PROJECTION = 1 << 12 ,
425+ const HAS_NORMALIZABLE_PROJECTION = 1 << 12 ;
426426
427427 const NEEDS_SUBST = TypeFlags :: HAS_PARAMS . bits |
428428 TypeFlags :: HAS_SELF . bits |
429- TypeFlags :: HAS_RE_EARLY_BOUND . bits,
429+ TypeFlags :: HAS_RE_EARLY_BOUND . bits;
430430
431431 // Flags representing the nominal content of a type,
432432 // computed by FlagsComputation. If you add a new nominal
@@ -442,7 +442,7 @@ bitflags! {
442442 TypeFlags :: HAS_PROJECTION . bits |
443443 TypeFlags :: HAS_TY_CLOSURE . bits |
444444 TypeFlags :: HAS_LOCAL_NAMES . bits |
445- TypeFlags :: KEEP_IN_LOCAL_TCX . bits,
445+ TypeFlags :: KEEP_IN_LOCAL_TCX . bits;
446446 }
447447}
448448
@@ -1258,13 +1258,13 @@ pub struct Destructor {
12581258}
12591259
12601260bitflags ! {
1261- flags AdtFlags : u32 {
1262- const NO_ADT_FLAGS = 0 ,
1263- const IS_ENUM = 1 << 0 ,
1264- const IS_PHANTOM_DATA = 1 << 1 ,
1265- const IS_FUNDAMENTAL = 1 << 2 ,
1266- const IS_UNION = 1 << 3 ,
1267- const IS_BOX = 1 << 4 ,
1261+ pub struct AdtFlags : u32 {
1262+ const NO_ADT_FLAGS = 0 ;
1263+ const IS_ENUM = 1 << 0 ;
1264+ const IS_PHANTOM_DATA = 1 << 1 ;
1265+ const IS_FUNDAMENTAL = 1 << 2 ;
1266+ const IS_UNION = 1 << 3 ;
1267+ const IS_BOX = 1 << 4 ;
12681268 }
12691269}
12701270
@@ -1357,18 +1357,18 @@ pub enum AdtKind { Struct, Union, Enum }
13571357
13581358bitflags ! {
13591359 #[ derive( RustcEncodable , RustcDecodable , Default ) ]
1360- flags ReprFlags : u8 {
1361- const IS_C = 1 << 0 ,
1362- const IS_PACKED = 1 << 1 ,
1363- const IS_SIMD = 1 << 2 ,
1360+ pub struct ReprFlags : u8 {
1361+ const IS_C = 1 << 0 ;
1362+ const IS_PACKED = 1 << 1 ;
1363+ const IS_SIMD = 1 << 2 ;
13641364 // Internal only for now. If true, don't reorder fields.
1365- const IS_LINEAR = 1 << 3 ,
1365+ const IS_LINEAR = 1 << 3 ;
13661366
13671367 // Any of these flags being set prevent field reordering optimisation.
13681368 const IS_UNOPTIMISABLE = ReprFlags :: IS_C . bits |
13691369 ReprFlags :: IS_PACKED . bits |
13701370 ReprFlags :: IS_SIMD . bits |
1371- ReprFlags :: IS_LINEAR . bits,
1371+ ReprFlags :: IS_LINEAR . bits;
13721372 }
13731373}
13741374
0 commit comments