mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 05:27:36 +00:00

Add support for making lib features internal We have the notion of an "internal" lang feature: a feature that is never intended to be stabilized, and using which can cause ICEs and other issues without that being considered a bug. This extends that idea to lib features as well. It is an alternative to https://github.com/rust-lang/rust/pull/115623: instead of using an attribute to declare lib features internal, we simply do this based on the name. Everything ending in `_internals` or `_internal` is considered internal. Then we rename `core_intrinsics` to `core_intrinsics_internal`, which fixes https://github.com/rust-lang/rust/issues/115597.
30 lines
681 B
Rust
30 lines
681 B
Rust
#![feature(assert_matches)]
|
|
#![feature(core_intrinsics)]
|
|
#![feature(hash_raw_entry)]
|
|
#![feature(min_specialization)]
|
|
#![feature(let_chains)]
|
|
#![allow(rustc::potential_query_instability, internal_features)]
|
|
#![deny(rustc::untranslatable_diagnostic)]
|
|
#![deny(rustc::diagnostic_outside_of_impl)]
|
|
|
|
#[macro_use]
|
|
extern crate tracing;
|
|
#[macro_use]
|
|
extern crate rustc_data_structures;
|
|
#[macro_use]
|
|
extern crate rustc_macros;
|
|
|
|
pub mod cache;
|
|
pub mod dep_graph;
|
|
mod error;
|
|
pub mod ich;
|
|
pub mod query;
|
|
mod values;
|
|
|
|
pub use error::HandleCycleError;
|
|
pub use error::LayoutOfDepth;
|
|
pub use error::QueryOverflow;
|
|
pub use values::Value;
|
|
|
|
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|