Skip to content

Commit 48c4482

Browse files
committed
Fix conflict between no_std and no_core when building rustc with custom libc
1 parent 715b50e commit 48c4482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// Enable extra lints:
2626
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
2727
#![deny(missing_copy_implementations, safe_packed_borrows)]
28-
#![no_std]
28+
#![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
2929
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
3030
#![cfg_attr(
3131
any(feature = "rustc-dep-of-std", target_os = "redox"),

0 commit comments

Comments
 (0)