]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_passes/src/feature_gate.rs
Auto merge of #88098 - Amanieu:oom_panic, r=nagisa
[rust.git] / compiler / rustc_ast_passes / src / feature_gate.rs
index 097bd07c74ce8a5ba6dca07e3f11d9bb113c423e..5b6147c72230d53b943586280b3a6d457d103886 100644 (file)
@@ -252,11 +252,12 @@ fn check_abi(&self, abi: ast::StrLit) {
                     "wasm ABI is experimental and subject to change"
                 );
             }
-            abi => self
-                .sess
-                .parse_sess
-                .span_diagnostic
-                .delay_span_bug(span, &format!("unrecognized ABI not caught in lowering: {}", abi)),
+            abi => {
+                self.sess.parse_sess.span_diagnostic.delay_span_bug(
+                    span,
+                    &format!("unrecognized ABI not caught in lowering: {}", abi),
+                );
+            }
         }
     }