]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_expand/base.rs
Rollup merge of #68937 - ecstatic-morse:unchecked-intrinsics-test, r=RalfJung
[rust.git] / src / librustc_expand / base.rs
index e167089b93a356692cd40fea275122b867320326..a5614f900b6fb142cae7ca5d85da01ba105ad0b6 100644 (file)
@@ -1113,7 +1113,11 @@ pub fn expr_to_string(
     err_msg: &str,
 ) -> Option<(Symbol, ast::StrStyle)> {
     expr_to_spanned_string(cx, expr, err_msg)
-        .map_err(|err| err.map(|mut err| err.emit()))
+        .map_err(|err| {
+            err.map(|mut err| {
+                err.emit();
+            })
+        })
         .ok()
         .map(|(symbol, style, _)| (symbol, style))
 }