Closed as not planned
Description
I tried this code:
#[inline(never)]
fn demo(s: &str) -> &str {
s
}
pub fn main() -> &'static str {
demo("input string")
}
it compiles to:
example::main:
lea rax, [rip + .L__unnamed_1]
mov edx, 12
ret
.L__unnamed_1:
.ascii "input string"
which has demo
inlined into main
This worked properly in Rust 1.11 but broke in Rust 1.12 and remains broken.