File tree 3 files changed +2
-13
lines changed
3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 1
1
jobs :
2
2
- template : default.yml@templates
3
3
parameters :
4
- minrust : 1.36 .0
4
+ minrust : 1.40 .0
5
5
codecov_token : $(CODECOV_TOKEN_SECRET)
6
6
7
7
resources :
Original file line number Diff line number Diff line change @@ -241,12 +241,8 @@ impl<V> fmt::Debug for Predicate<V> {
241
241
}
242
242
243
243
/// A pending map operation.
244
- ///
245
- /// Note that this enum should be considered
246
- /// [non-exhaustive](https://github.com/rust-lang/rust/issues/44109).
244
+ #[ non_exhaustive]
247
245
#[ derive( PartialEq , Eq , Debug ) ]
248
- // TODO: #[non_exhaustive]
249
- // https://github.com/rust-lang/rust/issues/44109
250
246
pub enum Operation < K , V > {
251
247
/// Replace the set of entries for this key with this value.
252
248
Replace ( K , V ) ,
@@ -278,11 +274,6 @@ pub enum Operation<K, V> {
278
274
///
279
275
/// This can improve performance by pre-allocating space for large value-sets.
280
276
Reserve ( K , usize ) ,
281
- // Since we have a feature that adds an enum variant, features are only additive (as they need
282
- // to be) if users never try to exhaustively match on this enum. Once rust-lang/rust#44109
283
- // lands, we'll have a more standard way to do this, but for now we rely on this trick:
284
- #[ doc( hidden) ]
285
- __Nonexhaustive,
286
277
}
287
278
288
279
mod write;
Original file line number Diff line number Diff line change @@ -640,7 +640,6 @@ where
640
640
entry. insert ( Values :: with_capacity ( additional) ) ;
641
641
}
642
642
} ,
643
- Operation :: __Nonexhaustive => unreachable ! ( ) ,
644
643
}
645
644
}
646
645
@@ -718,7 +717,6 @@ where
718
717
entry. insert ( Values :: with_capacity ( additional) ) ;
719
718
}
720
719
} ,
721
- Operation :: __Nonexhaustive => unreachable ! ( ) ,
722
720
}
723
721
}
724
722
}
You can’t perform that action at this time.
0 commit comments