mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
cc08749df2
When `no_builtins` is applied at the crate level, we should add the `no-builtins` attribute to each function to ensure it takes effect in LTO.
6 lines
69 B
Rust
6 lines
69 B
Rust
#![crate_type = "lib"]
|
|
#![no_builtins]
|
|
|
|
#[no_mangle]
|
|
pub fn foo() {}
|