mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
use a method instead of manually doing what its body does
This commit is contained in:
committed by
Mark Rousskov
parent
d8d064e7a8
commit
34a200304c
@@ -203,7 +203,7 @@ pub fn complete(&mut self, key: ProjectionCacheKey<'tcx>, result: EvaluationResu
|
||||
Some(&ProjectionCacheEntry::NormalizedTy { ref ty, complete: _ }) => {
|
||||
info!("ProjectionCacheEntry::complete({:?}) - completing {:?}", key, ty);
|
||||
let mut ty = ty.clone();
|
||||
if result == EvaluationResult::EvaluatedToOk {
|
||||
if result.must_apply_considering_regions() {
|
||||
ty.obligations = vec![];
|
||||
}
|
||||
map.insert(key, ProjectionCacheEntry::NormalizedTy { ty, complete: Some(result) });
|
||||
|
||||
Reference in New Issue
Block a user