Skip to content

Commit 97116eb

Browse files
committed
Some cleanup
1 parent e4684c7 commit 97116eb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc/traits/select.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,17 +2748,17 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
27482748
}
27492749

27502750
ty::GeneratorWitness(did, types) => {
2751-
let use_mir = if did.is_local() {
2751+
let use_mir = if did.is_local() {
27522752
self.tcx().features().generator_mir_traits
27532753
} else {
27542754
self.tcx().uses_generator_mir_traits(did.krate)
27552755
};
27562756

27572757
if !use_mir {
2758-
// This is sound because no regions in the witness can refer to
2759-
// the binder outside the witness. So we'll effectivly reuse
2760-
// the implicit binder around the witness.
2761-
return types.skip_binder().to_vec()
2758+
// This is sound because no regions in the witness can refer to
2759+
// the binder outside the witness. So we'll effectivly reuse
2760+
// the implicit binder around the witness.
2761+
return types.skip_binder().to_vec()
27622762
}
27632763
// Note that we need to use optimized_mir here,
27642764
// in order to have the `StateTransform` pass run

src/librustc_feature/active.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ declare_features! (
526526
/// Allows using `&mut` in constant functions.
527527
(active, const_mut_refs, "1.41.0", Some(57349), None),
528528

529-
(active, generator_mir_traits, "1.41.0", None, None),
529+
(active, generator_mir_traits, "1.41.0", Some(0), None),
530530

531531
// -------------------------------------------------------------------------
532532
// feature-group-end: actual feature gates

0 commit comments

Comments
 (0)