mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Inline OpportunisticVarResolver::fold_ty
.
This commit is contained in:
parent
f08a3371b0
commit
c2cf3f7b24
@ -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…
Reference in New Issue
Block a user