Skip to content

Commit 6eea0ff

Browse files
committed
Add more detailed codegen comment
1 parent 2390077 commit 6eea0ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_codegen_ssa/mir/block.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,11 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
532532
// We should only emit a call to this intrinsic in #[cfg(miri)] mode,
533533
// which means that we will never actually use the generate object files
534534
// (we will just be interpreting the MIR)
535+
//
536+
// Note that we still need to be able to codegen *something* for this intrisnic:
537+
// Miri currently uses Xargo to build a special libstd. As a side effect,
538+
// we generate normal object files for libstd - while these are never used,
539+
// we still need to be able to build them.
535540
if intrinsic == Some("miri_start_panic") {
536541
bx.abort();
537542
bx.unreachable();

0 commit comments

Comments
 (0)