File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/try/src/librustc_bitflags Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5
- refs/heads/try: 0c0d1387390fb6d30e74387b90663e658cf16b7e
5
+ refs/heads/try: 9504d8cdae1a22de7ea58ce81738cff88e2b3868
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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