Skip to content
Snippets Groups Projects
Commit 5049a971 authored by Alex Crichton's avatar Alex Crichton
Browse files

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
parent 577fdc86
No related branches found
No related tags found
No related merge requests found
......@@ -20,17 +20,11 @@
// Enable extra lints:
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
#![deny(missing_copy_implementations, safe_packed_borrows)]
// Enable no_std:
#![cfg_attr(
not(any(
feature = "use_std",
feature = "rustc-dep-of-std",
)),
no_std
)]
#![no_std]
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
#[cfg(feature = "use_std")]
extern crate std as core;
extern crate std;
#[macro_use]
mod macros;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment