Skip to content

Commit 87c5fc8

Browse files
committed
Clean up crate attributes
* No need for stability marker * Rustdoc docs not used for this crate * Remove old build-system related cruft from rustc itself.
1 parent 4585619 commit 87c5fc8

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

src/lib.rs

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,16 @@
1-
#![cfg_attr(not(stage0), deny(warnings))]
2-
#![cfg_attr(not(test), no_std)]
31
#![cfg_attr(feature = "compiler-builtins", compiler_builtins)]
4-
#![crate_name = "compiler_builtins"]
5-
#![crate_type = "rlib"]
6-
#![doc(
7-
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
8-
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
9-
html_root_url = "https://doc.rust-lang.org/nightly/",
10-
html_playground_url = "https://play.rust-lang.org/",
11-
test(attr(deny(warnings)))
12-
)]
2+
#![feature(abi_unadjusted)]
133
#![feature(asm)]
144
#![feature(compiler_builtins)]
155
#![feature(core_intrinsics)]
6+
#![feature(lang_items)]
7+
#![feature(linkage)]
168
#![feature(naked_functions)]
179
#![feature(repr_simd)]
18-
#![feature(abi_unadjusted)]
19-
#![feature(linkage)]
20-
#![feature(lang_items)]
21-
#![allow(unused_features)]
2210
#![no_builtins]
23-
#![cfg_attr(feature = "compiler-builtins", feature(staged_api))]
24-
#![cfg_attr(
25-
feature = "compiler-builtins",
26-
unstable(
27-
feature = "compiler_builtins_lib",
28-
reason = "Compiler builtins. Will never become stable.",
29-
issue = "0"
30-
)
31-
)]
11+
#![no_std]
12+
13+
#![allow(unused_features)]
3214

3315
// We use `u128` in a whole bunch of places which we currently agree with the
3416
// compiler on ABIs and such, so we should be "good enough" for now and changes

0 commit comments

Comments
 (0)