]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/mir/type_foldable.rs
Move ty::print methods to Drop-based scope guards
[rust.git] / compiler / rustc_middle / src / mir / type_foldable.rs
index ad8b9d323eed584be331cc999292a64f044d9208..901f3bf4f7d41b84603a6d89a04acfd670a59fee 100644 (file)
@@ -84,13 +84,16 @@ fn try_super_fold_with<F: FallibleTypeFolder<'tcx>>(
                 FalseEdge { real_target, imaginary_target }
             }
             FalseUnwind { real_target, unwind } => FalseUnwind { real_target, unwind },
-            InlineAsm { template, operands, options, line_spans, destination } => InlineAsm {
-                template,
-                operands: operands.try_fold_with(folder)?,
-                options,
-                line_spans,
-                destination,
-            },
+            InlineAsm { template, operands, options, line_spans, destination, cleanup } => {
+                InlineAsm {
+                    template,
+                    operands: operands.try_fold_with(folder)?,
+                    options,
+                    line_spans,
+                    destination,
+                    cleanup,
+                }
+            }
         };
         Ok(Terminator { source_info: self.source_info, kind })
     }