File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -281,13 +281,24 @@ macro_rules! bitflags {
281
281
}
282
282
}
283
283
284
+ // NOTE(stage0): Remove impl after a snapshot
285
+ #[ cfg( stage0) ]
284
286
impl Not <$BitFlags> for $BitFlags {
285
287
/// Returns the complement of this set of flags.
286
288
#[ inline]
287
289
fn not( & self ) -> $BitFlags {
288
290
$BitFlags { bits: !self . bits } & $BitFlags:: all( )
289
291
}
290
292
}
293
+
294
+ #[ cfg( not( stage0) ) ] // NOTE(stage0): Remove cfg after a snapshot
295
+ impl Not <$BitFlags> for $BitFlags {
296
+ /// Returns the complement of this set of flags.
297
+ #[ inline]
298
+ fn not( self ) -> $BitFlags {
299
+ $BitFlags { bits: !self . bits } & $BitFlags:: all( )
300
+ }
301
+ }
291
302
} ;
292
303
( $( #[ $attr: meta] ) * flags $BitFlags: ident: $T: ty {
293
304
$( $( #[ $Flag_attr: meta] ) * const $Flag: ident = $value: expr) ,+,
You can’t perform that action at this time.
0 commit comments