This commit is contained in:
bjorn3 2021-02-21 17:03:21 +01:00
parent 4eb6754749
commit 013b3c5a7c
3 changed files with 11 additions and 3 deletions

View 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"
);
}
}
}

View 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
}
}

View 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");
}
}
}