use a method instead of manually doing what its body does
This commit is contained in:
parent
9dbfcbcbb5
commit
ade2a96ff1
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ impl<'tcx> ProjectionCache<'_, 'tcx> {
|
||||||
Some(&ProjectionCacheEntry::NormalizedTy { ref ty, complete: _ }) => {
|
Some(&ProjectionCacheEntry::NormalizedTy { ref ty, complete: _ }) => {
|
||||||
info!("ProjectionCacheEntry::complete({:?}) - completing {:?}", key, ty);
|
info!("ProjectionCacheEntry::complete({:?}) - completing {:?}", key, ty);
|
||||||
let mut ty = ty.clone();
|
let mut ty = ty.clone();
|
||||||
if result == EvaluationResult::EvaluatedToOk {
|
if result.must_apply_considering_regions() {
|
||||||
ty.obligations = vec![];
|
ty.obligations = vec![];
|
||||||
}
|
}
|
||||||
map.insert(key, ProjectionCacheEntry::NormalizedTy { ty, complete: Some(result) });
|
map.insert(key, ProjectionCacheEntry::NormalizedTy { ty, complete: Some(result) });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue