Skip to content

Commit 8f0847e

Browse files
author
Jorge Aparicio
committed
rename to compiler_builtins, add rust-lang/rust-ish crate attributes
1 parent 24c0247 commit 8f0847e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Jorge Aparicio <[email protected]>"]
33
build = "build.rs"
4-
name = "rustc_builtins"
4+
name = "compiler_builtins"
55
version = "0.1.0"
66

77
[build-dependencies]

src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1+
#![cfg_attr(not(stage0), deny(warnings))]
12
#![cfg_attr(not(test), no_std)]
23
#![compiler_builtins]
34
#![crate_name = "compiler_builtins"]
45
#![crate_type = "rlib"]
6+
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
7+
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
8+
html_root_url = "https://doc.rust-lang.org/nightly/",
9+
html_playground_url = "https://play.rust-lang.org/",
10+
test(attr(deny(warnings))))]
511
#![feature(asm)]
612
#![feature(compiler_builtins)]
713
#![feature(core_intrinsics)]
814
#![feature(linkage)]
915
#![feature(naked_functions)]
16+
#![feature(staged_api)]
1017
#![no_builtins]
18+
#![unstable(feature = "compiler_builtins",
19+
reason = "Compiler builtins. Will never become stable.",
20+
issue = "0")]
1121

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

0 commit comments

Comments
 (0)