Infinite loop optimized out by inlining? · Issue #42009 · rust-lang/rust
This crate fn noret() -> ! { loop { } } pub fn test_noret() -> () { noret() } when compiled without optimization (rustc --crate-type rlib --emit asm), produces _ZN4test5noret17hecd4eea31d87a4...