Skip to content

Commit 060b091

Browse files
committed
---
yaml --- r: 207844 b: refs/heads/snap-stage3 c: 9504d8c h: refs/heads/master v: v3
1 parent 629d9a9 commit 060b091

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0c0d1387390fb6d30e74387b90663e658cf16b7e
4+
refs/heads/snap-stage3: 9504d8cdae1a22de7ea58ce81738cff88e2b3868
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/librustc_bitflags/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// Do not remove on snapshot creation. Needed for bootstrap. (Issue #22364)
1313
#![cfg_attr(stage0, feature(custom_attribute))]
1414
#![crate_name = "rustc_bitflags"]
15+
#![feature(associated_consts)]
1516
#![feature(staged_api)]
1617
#![staged_api]
1718
#![crate_type = "rlib"]
@@ -34,6 +35,7 @@
3435
///
3536
/// ```{.rust}
3637
/// # #![feature(rustc_private)]
38+
/// # #![feature(associated_consts)]
3739
/// #[macro_use] extern crate rustc_bitflags;
3840
///
3941
/// bitflags! {
@@ -144,9 +146,9 @@ macro_rules! bitflags {
144146
bits: $T,
145147
}
146148

147-
$($(#[$Flag_attr])* pub const $Flag: $BitFlags = $BitFlags { bits: $value };)+
148-
149149
impl $BitFlags {
150+
$($(#[$Flag_attr])* pub const $Flag: $BitFlags = $BitFlags { bits: $value };)+
151+
150152
/// Returns an empty set of flags.
151153
#[inline]
152154
pub fn empty() -> $BitFlags {

0 commit comments

Comments
 (0)