Skip to content

Commit 3108e28

Browse files
committed
---
yaml --- r: 210130 b: refs/heads/try c: 9504d8c h: refs/heads/master v: v3
1 parent e78312e commit 3108e28

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 3e561f05c00cd180ec02db4ccab2840a4aba93d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
5-
refs/heads/try: 0c0d1387390fb6d30e74387b90663e658cf16b7e
5+
refs/heads/try: 9504d8cdae1a22de7ea58ce81738cff88e2b3868
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/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)