Rustfmt
This commit is contained in:
parent
4eb6754749
commit
013b3c5a7c
3 changed files with 11 additions and 3 deletions
|
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue