diff --git a/env/src/lib.rs b/env/src/lib.rs index 9105c19..23710c7 100644 --- a/env/src/lib.rs +++ b/env/src/lib.rs @@ -130,6 +130,11 @@ html_root_url = "http://doc.rust-lang.org/env_logger/")] #![cfg_attr(test, deny(warnings))] +// When compiled for the rustc compiler itself we want to make sure that this is +// an unstable crate +#![cfg_attr(rustbuild, feature(staged_api, rustc_private))] +#![cfg_attr(rustbuild, unstable(feature = "rustc_private", issue = "27812"))] + extern crate log; use std::env; diff --git a/src/lib.rs b/src/lib.rs index 431c70f..6c222ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -192,6 +192,11 @@ #![cfg_attr(not(feature = "use_std"), no_std)] +// When compiled for the rustc compiler itself we want to make sure that this is +// an unstable crate +#![cfg_attr(rustbuild, feature(staged_api, rustc_private))] +#![cfg_attr(rustbuild, unstable(feature = "rustc_private", issue = "27812"))] + #[cfg(not(feature = "use_std"))] extern crate core as std;