rename to compiler_builtins, add rust-lang/rust-ish crate attributes
This commit is contained in:
parent
24c0247c6a
commit
8f0847eb94
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
authors = ["Jorge Aparicio <japaricious@gmail.com>"]
|
||||
build = "build.rs"
|
||||
name = "rustc_builtins"
|
||||
name = "compiler_builtins"
|
||||
version = "0.1.0"
|
||||
|
||||
[build-dependencies]
|
||||
|
|
10
src/lib.rs
10
src/lib.rs
|
@ -1,13 +1,23 @@
|
|||
#![cfg_attr(not(stage0), deny(warnings))]
|
||||
#![cfg_attr(not(test), no_std)]
|
||||
#![compiler_builtins]
|
||||
#![crate_name = "compiler_builtins"]
|
||||
#![crate_type = "rlib"]
|
||||
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
|
||||
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
|
||||
html_root_url = "https://doc.rust-lang.org/nightly/",
|
||||
html_playground_url = "https://play.rust-lang.org/",
|
||||
test(attr(deny(warnings))))]
|
||||
#![feature(asm)]
|
||||
#![feature(compiler_builtins)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(linkage)]
|
||||
#![feature(naked_functions)]
|
||||
#![feature(staged_api)]
|
||||
#![no_builtins]
|
||||
#![unstable(feature = "compiler_builtins",
|
||||
reason = "Compiler builtins. Will never become stable.",
|
||||
issue = "0")]
|
||||
|
||||
// We disable #[no_mangle] for tests so that we can verify the test results
|
||||
// against the native compiler-rt implementations of the builtins.
|
||||
|
|
Loading…
Reference in New Issue