Skip to content

Commit 7af4376

Browse files
committed
We don't need FLAG_LIST anymore
1 parent b6d8869 commit 7af4376

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

enumflags_derive/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,6 @@ fn gen_enumflags(ast: &mut ItemEnum, default: Vec<Ident>) -> Result<TokenStream,
346346
const ALL_BITS: Self::Numeric =
347347
0 #(| (Self::#variant_names as #repr))*;
348348

349-
const FLAG_LIST: &'static [Self] =
350-
&[#(Self::#variant_names),*];
351-
352349
const BITFLAGS_TYPE_NAME : &'static str =
353350
concat!("BitFlags<", stringify!(#ident), ">");
354351

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ pub mod _internal {
202202
/// A value with all flag bits set.
203203
const ALL_BITS: Self::Numeric;
204204

205-
/// A slice that contains each variant exactly one.
206-
const FLAG_LIST: &'static [Self];
207-
208205
/// The name of the type for debug formatting purposes.
209206
///
210207
/// This is typically `BitFlags<EnumName>`

0 commit comments

Comments
 (0)