don't restuct references just to reborrow
This commit is contained in:
parent
35a99eef32
commit
a108d55ce6
22 changed files with 41 additions and 42 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue