Skip to content

Commit fecc1fd

Browse files
committed
Auto merge of #1268 - alexcrichton:fix-features, r=gnzlbg
Fix build of `rustc-dep-of-std` feature Enusre that `no_core` is turned on, and while here update the `no_std` header to be unconditionally applied. Closes #1267
2 parents 577fdc8 + 5049a97 commit fecc1fd

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/lib.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,11 @@
2020
// Enable extra lints:
2121
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
2222
#![deny(missing_copy_implementations, safe_packed_borrows)]
23-
// Enable no_std:
24-
#![cfg_attr(
25-
not(any(
26-
feature = "use_std",
27-
feature = "rustc-dep-of-std",
28-
)),
29-
no_std
30-
)]
23+
#![no_std]
24+
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3125

3226
#[cfg(feature = "use_std")]
33-
extern crate std as core;
27+
extern crate std;
3428

3529
#[macro_use]
3630
mod macros;

0 commit comments

Comments
 (0)