Files
hakorune/src/mir/spanned_instruction.rs
2025-11-24 15:02:51 +09:00

17 lines
390 B
Rust

use super::MirInstruction;
use crate::ast::Span;
/// MIR instruction bundled with its source span.
#[derive(Debug, Clone)]
pub struct SpannedInstruction {
pub inst: MirInstruction,
pub span: Span,
}
/// Reference view of a MIR instruction bundled with its span.
#[derive(Debug, Clone, Copy)]
pub struct SpannedInstRef<'a> {
pub inst: &'a MirInstruction,
pub span: Span,
}