diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 17:01:58 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-18 17:04:32 +0100 |
| commit | a108d55ce634b6f71462c82966b791f18136360e (patch) | |
| tree | b97c3fb756857ff073519cf404b46a5628458b0b /compiler/rustc_infer/src/traits/project.rs | |
| parent | 35a99eef32a2b7b9d8e77dde539f869e522d181f (diff) | |
| download | rust-a108d55ce634b6f71462c82966b791f18136360e.tar.gz rust-a108d55ce634b6f71462c82966b791f18136360e.zip | |
don't restuct references just to reborrow
Diffstat (limited to 'compiler/rustc_infer/src/traits/project.rs')
| -rw-r--r-- | compiler/rustc_infer/src/traits/project.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/traits/project.rs b/compiler/rustc_infer/src/traits/project.rs index aade57be9fe..ac455055b43 100644 --- a/compiler/rustc_infer/src/traits/project.rs +++ b/compiler/rustc_infer/src/traits/project.rs @@ -200,7 +200,7 @@ impl<'tcx> ProjectionCache<'_, 'tcx> { pub fn complete(&mut self, key: ProjectionCacheKey<'tcx>, result: EvaluationResult) { let mut map = self.map(); match map.get(&key) { - Some(&ProjectionCacheEntry::NormalizedTy { ref ty, complete: _ }) => { + Some(ProjectionCacheEntry::NormalizedTy { ty, complete: _ }) => { info!("ProjectionCacheEntry::complete({:?}) - completing {:?}", key, ty); let mut ty = ty.clone(); if result.must_apply_considering_regions() { |
