]> git.lizzy.rs Git - rust.git/commitdiff
Inline `OpportunisticVarResolver::fold_ty`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 2 Feb 2023 23:31:11 +0000 (10:31 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 5 Feb 2023 21:52:04 +0000 (08:52 +1100)
compiler/rustc_infer/src/infer/resolve.rs

index 49cd9a9c3d0fbfc0f6a063d218d01b72f3188dcb..a39a40cf9abe242f22408b62c077e2d7ef32160e 100644 (file)
@@ -33,6 +33,7 @@ fn tcx<'b>(&'b self) -> TyCtxt<'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...