fe3cd2d194
Only inline functions that are considered eligible for inlining by the reachability pass. This constraint was previously indirectly enforced by only exporting MIR of eligible functions, but that approach doesn't work with -Zalways-encode-mir enabled.
8 lines
102 B
Rust
8 lines
102 B
Rust
// compile-flags: -Zalways-encode-mir
|
|
|
|
static S: usize = 42;
|
|
|
|
pub fn f() -> &'static usize {
|
|
&S
|
|
}
|