File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2185,7 +2185,7 @@ pub enum EnumVariation {
2185
2185
impl EnumVariation {
2186
2186
fn is_rust ( & self ) -> bool {
2187
2187
match * self {
2188
- EnumVariation :: Rust { non_exhaustive : _ } => true ,
2188
+ EnumVariation :: Rust { .. } => true ,
2189
2189
_ => false
2190
2190
}
2191
2191
}
@@ -2285,7 +2285,7 @@ impl<'a> EnumBuilder<'a> {
2285
2285
}
2286
2286
}
2287
2287
2288
- EnumVariation :: Rust { non_exhaustive : _ } => {
2288
+ EnumVariation :: Rust { .. } => {
2289
2289
let tokens = quote ! ( ) ;
2290
2290
EnumBuilder :: Rust {
2291
2291
codegen_depth : enum_codegen_depth + 1 ,
@@ -2578,11 +2578,11 @@ impl CodeGenerator for Enum {
2578
2578
2579
2579
// TODO(emilio): Delegate this to the builders?
2580
2580
match variation {
2581
- EnumVariation :: Rust { non_exhaustive : nh } => {
2581
+ EnumVariation :: Rust { non_exhaustive } => {
2582
2582
attrs. push ( attributes:: repr ( repr_name) ) ;
2583
- if nh && ctx. options ( ) . rust_features ( ) . non_exhaustive {
2583
+ if non_exhaustive && ctx. options ( ) . rust_features ( ) . non_exhaustive {
2584
2584
attrs. push ( attributes:: non_exhaustive ( ) ) ;
2585
- } else if nh && !ctx. options ( ) . rust_features ( ) . non_exhaustive {
2585
+ } else if non_exhaustive && !ctx. options ( ) . rust_features ( ) . non_exhaustive {
2586
2586
panic ! ( "The rust target you're using doesn't seem to support non_exhaustive enums" ) ;
2587
2587
}
2588
2588
} ,
You can’t perform that action at this time.
0 commit comments