Inline OpportunisticVarResolver::fold_ty
.
This commit is contained in:
parent
f08a3371b0
commit
c2cf3f7b24
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ impl<'a, 'tcx> TypeFolder<'tcx> for OpportunisticVarResolver<'a, 'tcx> {
|
|||
TypeFolder::tcx(&self.shallow_resolver)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn fold_ty(&mut self, t: Ty<'tcx>) -> Ty<'tcx> {
|
||||
if !t.has_non_region_infer() {
|
||||
t // micro-optimize -- if there is nothing in this type that this fold affects...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue