Skip to content

Commit 7cac8d0

Browse files
committed
Auto merge of #1019 - est31:master, r=alexcrichton
Simplify the stdbuild section Found this when encountering the code in the rustc submodule and changing the allow for the warnings to deny. * `no_std` is stable so it does not have to be listed in the `feature` attribute * `no_std` as an attribute for the crate is already implied by the `#![cfg_attr(not(feature = "use_std"), no_std)]` below * `staged_api` as an attribute gives a warning. That also matches my knowledge.
2 parents 0d0a5f7 + f164aa8 commit 7cac8d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@
8686
))]
8787

8888
// Attributes needed when building as part of the standard library
89-
#![cfg_attr(feature = "stdbuild", feature(no_std, staged_api, custom_attribute, cfg_target_vendor))]
89+
#![cfg_attr(feature = "stdbuild", feature(staged_api, custom_attribute, cfg_target_vendor))]
9090
#![cfg_attr(feature = "stdbuild", feature(link_cfg, repr_packed))]
91-
#![cfg_attr(feature = "stdbuild", no_std)]
92-
#![cfg_attr(feature = "stdbuild", staged_api)]
9391
#![cfg_attr(feature = "stdbuild", allow(warnings))]
9492
#![cfg_attr(feature = "stdbuild", unstable(feature = "libc",
9593
reason = "use `libc` from crates.io",

0 commit comments

Comments
 (0)