diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-21 17:03:21 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-21 17:03:21 +0100 |
| commit | 013b3c5a7ca7f9e180d557e9243ef2e523082002 (patch) | |
| tree | ca59addc2125944c4939338c90fafd7bc024c980 | |
| parent | 4eb67547498dd338800a4ebefd0a0e907752d04b (diff) | |
| download | rust-013b3c5a7ca7f9e180d557e9243ef2e523082002.tar.gz rust-013b3c5a7ca7f9e180d557e9243ef2e523082002.zip | |
Rustfmt
| -rw-r--r-- | src/constant.rs | 5 | ||||
| -rw-r--r-- | src/driver/aot.rs | 6 | ||||
| -rw-r--r-- | 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"); } } } |
