Skip to content

Commit 24c0247

Browse files
author
Jorge Aparicio
committed
add the compiler_builtins feature to src/lib.rs
1 parent d2a3c45 commit 24c0247

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
#![cfg_attr(not(test), no_std)]
2+
#![compiler_builtins]
13
#![crate_name = "compiler_builtins"]
24
#![crate_type = "rlib"]
35
#![feature(asm)]
6+
#![feature(compiler_builtins)]
47
#![feature(core_intrinsics)]
58
#![feature(linkage)]
69
#![feature(naked_functions)]
7-
#![cfg_attr(not(test), no_std)]
810
#![no_builtins]
9-
// TODO(rust-lang/rust#35021) uncomment when that PR lands
10-
// #![feature(rustc_builtins)]
1111

1212
// We disable #[no_mangle] for tests so that we can verify the test results
1313
// against the native compiler-rt implementations of the builtins.

0 commit comments

Comments
 (0)