File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/snap-stage3/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 1
1
---
2
2
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 0c0d1387390fb6d30e74387b90663e658cf16b7e
4
+ refs/heads/snap-stage3: 9504d8cdae1a22de7ea58ce81738cff88e2b3868
5
5
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
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