Skip to content

Commit 01fc116

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 01fc116

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

examples/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#![cfg_attr(thumb, no_main)]
88
#![deny(dead_code)]
99
#![feature(asm)]
10-
#![feature(compiler_builtins_lib)]
1110
#![feature(lang_items)]
1211
#![feature(start)]
1312
#![feature(allocator_api)]

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)