File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
13
13
#![ cfg_attr( stage0, feature( custom_attribute) ) ]
14
14
#![ crate_name = "rustc_bitflags" ]
15
+ #![ feature( associated_consts) ]
15
16
#![ feature( staged_api) ]
16
17
#![ staged_api]
17
18
#![ crate_type = "rlib" ]
34
35
///
35
36
/// ```{.rust}
36
37
/// # #![feature(rustc_private)]
38
+ /// # #![feature(associated_consts)]
37
39
/// #[macro_use] extern crate rustc_bitflags;
38
40
///
39
41
/// bitflags! {
@@ -144,9 +146,9 @@ macro_rules! bitflags {
144
146
bits: $T,
145
147
}
146
148
147
- $( $( #[ $Flag_attr] ) * pub const $Flag: $BitFlags = $BitFlags { bits: $value } ; ) +
148
-
149
149
impl $BitFlags {
150
+ $( $( #[ $Flag_attr] ) * pub const $Flag: $BitFlags = $BitFlags { bits: $value } ; ) +
151
+
150
152
/// Returns an empty set of flags.
151
153
#[ inline]
152
154
pub fn empty( ) -> $BitFlags {
You can’t perform that action at this time.
0 commit comments