Span trace utilities and runner source hint
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use super::{BasicBlock, BasicBlockId};
|
||||
use crate::mir::{BarrierOp, TypeOpKind, WeakRefOp};
|
||||
use crate::mir::{BarrierOp, SpannedInstruction, TypeOpKind, WeakRefOp};
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
// include path resolver removed (using handles modules)
|
||||
|
||||
@ -405,7 +405,10 @@ impl super::MirBuilder {
|
||||
bb, dst.0, src.0, block.phi_instructions().count());
|
||||
}
|
||||
// Propagate effects on the block
|
||||
block.insert_instruction_after_phis(super::MirInstruction::Copy { dst, src });
|
||||
block.insert_spanned_after_phis(SpannedInstruction {
|
||||
inst: super::MirInstruction::Copy { dst, src },
|
||||
span: self.current_span,
|
||||
});
|
||||
// Lightweight metadata propagation (unified)
|
||||
crate::mir::builder::metadata::propagate::propagate(self, src, dst);
|
||||
return Ok(());
|
||||
|
||||
Reference in New Issue
Block a user