Skip to content

Commit 2852a12

Browse files
committed
Add core::cfg to the prelude
This is not always present when we are building as `rustc-dep-of-std`. (backport <#4782>) (cherry picked from commit 919d0d4)
1 parent 54e9ea6 commit 2852a12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/macros.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ macro_rules! prelude {
8787
pub(crate) use core::prelude::v1::derive;
8888
#[allow(unused_imports)]
8989
pub(crate) use core::{
90+
cfg,
9091
fmt,
9192
hash,
9293
iter,

0 commit comments

Comments
 (0)