From 013b3c5a7ca7f9e180d557e9243ef2e523082002 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 21 Feb 2021 17:03:21 +0100 Subject: [PATCH] Rustfmt --- src/constant.rs | 5 ++++- src/driver/aot.rs | 6 +++++- src/driver/jit.rs | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/constant.rs b/src/constant.rs index f3e17774fdf..60f569bca93 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -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" + ); } } } diff --git a/src/driver/aot.rs b/src/driver/aot.rs index a7fcbb2f1e4..1a26642a49b 100644 --- a/src/driver/aot.rs +++ b/src/driver/aot.rs @@ -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 + } } diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 7857e837143..bab4586e7f6 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -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"); } } }