Skip to content

Commit

Permalink
Auto merge of #101 - Aaron1011:rustc-internal-api, r=Amanieu
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Jul 9, 2019
2 parents 9df7c6d + 794caff commit fe512c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ serde_test = "1.0"
[features]
default = []
nightly = []
rustc-dep-of-std = ["nightly", "core", "compiler_builtins", "alloc"]
rustc-internal-api = []
rustc-dep-of-std = ["nightly", "core", "compiler_builtins", "alloc", "rustc-internal-api"]
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod external_trait_impls;
mod fx;
mod map;
mod raw;
#[cfg(feature = "rustc-dep-of-std")]
#[cfg(feature = "rustc-internal-api")]
mod rustc_entry;
mod scopeguard;
mod set;
Expand All @@ -51,7 +51,7 @@ pub mod hash_map {
//! A hash map implemented with quadratic probing and SIMD lookup.
pub use crate::map::*;

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

#[cfg(feature = "rayon")]
Expand Down

0 comments on commit fe512c2

Please sign in to comment.