Skip to content

Commit fe512c2

Browse files
committed
Auto merge of #101 - Aaron1011:rustc-internal-api, r=Amanieu
Add new 'rustc-internal-api' feature The new 'rustc-internal-api' controls access to the exported internal API used by rustc. This is fully backwards compatible, as 'rustc-dep-of-std' depends on 'rustc-internal-api' This supports rust-lang/rust#62513
2 parents 9df7c6d + 794caff commit fe512c2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ serde_test = "1.0"
3535
[features]
3636
default = []
3737
nightly = []
38-
rustc-dep-of-std = ["nightly", "core", "compiler_builtins", "alloc"]
38+
rustc-internal-api = []
39+
rustc-dep-of-std = ["nightly", "core", "compiler_builtins", "alloc", "rustc-internal-api"]

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mod external_trait_impls;
4242
mod fx;
4343
mod map;
4444
mod raw;
45-
#[cfg(feature = "rustc-dep-of-std")]
45+
#[cfg(feature = "rustc-internal-api")]
4646
mod rustc_entry;
4747
mod scopeguard;
4848
mod set;
@@ -51,7 +51,7 @@ pub mod hash_map {
5151
//! A hash map implemented with quadratic probing and SIMD lookup.
5252
pub use crate::map::*;
5353

54-
#[cfg(feature = "rustc-dep-of-std")]
54+
#[cfg(feature = "rustc-internal-api")]
5555
pub use crate::rustc_entry::*;
5656

5757
#[cfg(feature = "rayon")]

0 commit comments

Comments
 (0)