diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2021-10-03 23:13:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-03 23:13:20 -0700 |
| commit | 5215b855b0e4c84cbcaa3c7afa06f8e3d89f7ca8 (patch) | |
| tree | caed7db34e90ef08c07c22e400506f73ca8fb6b0 /compiler/rustc_borrowck | |
| parent | 5e66ba799beaa6d5616e448d3b688e633d0eea62 (diff) | |
| parent | 9f4cb862caf936858450721b548b303fb3eec351 (diff) | |
| download | rust-5215b855b0e4c84cbcaa3c7afa06f8e3d89f7ca8.tar.gz rust-5215b855b0e4c84cbcaa3c7afa06f8e3d89f7ca8.zip | |
Rollup merge of #88481 - bjorn3:remove_feature_gates, r=cjgillot
Remove some feature gates The first commit removes various feature gates that are unused. The second commit replaces some `Fn` implementations with `Iterator` implementations, which is much cleaner IMO. The third commit replaces an unboxed_closures feature gate with min_specialization. For some reason the unboxed_closures feature gate suppresses the min_specialization feature gate from triggering on an `TrustedStep` impl. The last comment just turns a regular comment into a doc comment as drive by cleanup. I can move it to a separate PR if preferred.
Diffstat (limited to 'compiler/rustc_borrowck')
| -rw-r--r-- | compiler/rustc_borrowck/src/member_constraints.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_borrowck/src/region_infer/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/member_constraints.rs b/compiler/rustc_borrowck/src/member_constraints.rs index 2e2578df011..f22d355e613 100644 --- a/compiler/rustc_borrowck/src/member_constraints.rs +++ b/compiler/rustc_borrowck/src/member_constraints.rs @@ -144,7 +144,7 @@ impl<R> MemberConstraintSet<'tcx, R> where R: Copy + Hash + Eq, { - crate fn all_indices(&self) -> impl Iterator<Item = NllMemberConstraintIndex> { + crate fn all_indices(&self) -> impl Iterator<Item = NllMemberConstraintIndex> + '_ { self.constraints.indices() } diff --git a/compiler/rustc_borrowck/src/region_infer/mod.rs b/compiler/rustc_borrowck/src/region_infer/mod.rs index 65d6e3a4ae5..734a5b4972b 100644 --- a/compiler/rustc_borrowck/src/region_infer/mod.rs +++ b/compiler/rustc_borrowck/src/region_infer/mod.rs @@ -497,7 +497,7 @@ impl<'tcx> RegionInferenceContext<'tcx> { } /// Returns an iterator over all the region indices. - pub fn regions(&self) -> impl Iterator<Item = RegionVid> { + pub fn regions(&self) -> impl Iterator<Item = RegionVid> + '_ { self.definitions.indices() } |
