Skip to content

Commit 013b3c5

Browse files
committed
Rustfmt
1 parent 4eb6754 commit 013b3c5

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/constant.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ pub(crate) fn codegen_constant<'tcx>(
137137
{
138138
Ok(const_val) => const_val,
139139
Err(_) => {
140-
span_bug!(constant.span, "erroneous constant not captured by required_consts");
140+
span_bug!(
141+
constant.span,
142+
"erroneous constant not captured by required_consts"
143+
);
141144
}
142145
}
143146
}

src/driver/aot.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,5 +433,9 @@ fn determine_cgu_reuse<'tcx>(tcx: TyCtxt<'tcx>, cgu: &CodegenUnit<'tcx>) -> CguR
433433
cgu.name()
434434
);
435435

436-
if tcx.try_mark_green(&dep_node) { CguReuse::PreLto } else { CguReuse::No }
436+
if tcx.try_mark_green(&dep_node) {
437+
CguReuse::PreLto
438+
} else {
439+
CguReuse::No
440+
}
437441
}

src/driver/jit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ pub(super) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
7878
}
7979
MonoItem::GlobalAsm(item_id) => {
8080
let item = cx.tcx.hir().item(item_id);
81-
tcx.sess.span_fatal(item.span, "Global asm is not supported in JIT mode");
81+
tcx.sess
82+
.span_fatal(item.span, "Global asm is not supported in JIT mode");
8283
}
8384
}
8485
}

0 commit comments

Comments
 (0)