]> git.lizzy.rs Git - rust.git/commitdiff
Rustfmt
authorbjorn3 <bjorn3@users.noreply.github.com>
Sun, 21 Feb 2021 16:03:21 +0000 (17:03 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Sun, 21 Feb 2021 16:03:21 +0000 (17:03 +0100)
src/constant.rs
src/driver/aot.rs
src/driver/jit.rs

index f3e17774fdfa5184d90af8c71e117ee7c728705d..60f569bca93082bc81317d0e8cf08dcd189aedd1 100644 (file)
@@ -137,7 +137,10 @@ pub(crate) fn codegen_constant<'tcx>(
             {
                 Ok(const_val) => const_val,
                 Err(_) => {
-                    span_bug!(constant.span, "erroneous constant not captured by required_consts");
+                    span_bug!(
+                        constant.span,
+                        "erroneous constant not captured by required_consts"
+                    );
                 }
             }
         }
index a7fcbb2f1e4b2da9b870c932acf5b1fb39f913b3..1a26642a49b3e5a2a39c8aa33467c0f3c9cb3a52 100644 (file)
@@ -433,5 +433,9 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
         cgu.name()
     );
 
-    if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
+    if tcx.try_mark_green(&dep_node) {
+        CguReuse::PreLto
+    } else {
+        CguReuse::No
+    }
 }
index 7857e83714399680c4e8cf236c422f38c2aef30c..bab4586e7f622a8e7d5d68052655d0788314e750 100644 (file)
@@ -78,7 +78,8 @@ pub(super) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
                 }
                 MonoItem::GlobalAsm(item_id) => {
                     let item = cx.tcx.hir().item(item_id);
-                    tcx.sess.span_fatal(item.span, "Global asm is not supported in JIT mode");
+                    tcx.sess
+                        .span_fatal(item.span, "Global asm is not supported in JIT mode");
                 }
             }
         }