mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
308 B
Rust
17 lines
308 B
Rust
// skip-filecheck
|
|
// Test that the comments we emit in MIR opts are accurate.
|
|
//
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
// compile-flags: -Zmir-include-spans
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// EMIT_MIR spans.outer.PreCodegen.after.mir
|
|
pub fn outer(v: u8) -> u8 {
|
|
inner(&v)
|
|
}
|
|
|
|
pub fn inner(x: &u8) -> u8 {
|
|
*x
|
|
}
|