diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-26 02:06:39 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-26 02:06:39 +0000 |
| commit | ae40f6a7ffdda1f58794e25db2d8c9798cfe1e40 (patch) | |
| tree | c39948942e3187beff8218f946a8695b8737ec92 /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | b91a98ba1062a8ec55721bb7ed824ae6985fdca1 (diff) | |
| download | rust-ae40f6a7ffdda1f58794e25db2d8c9798cfe1e40.tar.gz rust-ae40f6a7ffdda1f58794e25db2d8c9798cfe1e40.zip | |
Clean up more lifetimes
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/constructor.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs index b688051ca9c..15ff4ceb5b3 100644 --- a/compiler/rustc_pattern_analysis/src/constructor.rs +++ b/compiler/rustc_pattern_analysis/src/constructor.rs @@ -861,12 +861,9 @@ impl<Cx: TypeCx> ConstructorSet<Cx> { #[instrument(level = "debug", skip(self, pcx, ctors), ret)] pub(crate) fn split<'a>( &self, - pcx: &PlaceCtxt<'_, '_, Cx>, + pcx: &PlaceCtxt<'a, '_, Cx>, ctors: impl Iterator<Item = &'a Constructor<Cx>> + Clone, - ) -> SplitConstructorSet<Cx> - where - Cx: 'a, - { + ) -> SplitConstructorSet<Cx> { let mut present: SmallVec<[_; 1]> = SmallVec::new(); // Empty constructors found missing. let mut missing_empty = Vec::new(); |
