also make 'core_intrinsics' internal
This commit is contained in:
parent
d1583eba66
commit
74834a9d74
@ -132,10 +132,12 @@ macro_rules! declare_features {
|
||||
// Accepted/removed features aren't in this file but are never internal
|
||||
// (a removed feature might have been internal, but that's now irrelevant).
|
||||
// Libs features are internal if they end in `_internal` or `_internals`.
|
||||
// As a special exception we also consider `core_intrinsics` internal;
|
||||
// renaming that age-old feature is just not worth the hassle.
|
||||
// We just always test the name; it's not a big deal if we accidentally hit
|
||||
// an accepted/removed lang feature that way.
|
||||
let name = feature.as_str();
|
||||
name.ends_with("_internal") || name.ends_with("_internals")
|
||||
name == "core_intrinsics" || name.ends_with("_internal") || name.ends_with("_internals")
|
||||
}
|
||||
_ => panic!("`{}` was not listed in `declare_features`", feature),
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#![feature(hash_raw_entry)]
|
||||
#![feature(min_specialization)]
|
||||
#![feature(let_chains)]
|
||||
#![allow(rustc::potential_query_instability)]
|
||||
#![allow(rustc::potential_query_instability, internal_features)]
|
||||
#![deny(rustc::untranslatable_diagnostic)]
|
||||
#![deny(rustc::diagnostic_outside_of_impl)]
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#![feature(thin_box)]
|
||||
#![feature(strict_provenance)]
|
||||
#![feature(drain_keep_rest)]
|
||||
#![allow(internal_features)]
|
||||
#![deny(fuzzy_provenance_casts)]
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
|
||||
|
@ -1900,6 +1900,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::ctlz;
|
||||
///
|
||||
@ -1912,6 +1913,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::ctlz;
|
||||
///
|
||||
@ -1933,6 +1935,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::ctlz_nonzero;
|
||||
///
|
||||
@ -1959,6 +1962,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::cttz;
|
||||
///
|
||||
@ -1971,6 +1975,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::cttz;
|
||||
///
|
||||
@ -1992,6 +1997,7 @@ extern "rust-intrinsic" {
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
///
|
||||
/// use std::intrinsics::cttz_nonzero;
|
||||
///
|
||||
@ -2453,6 +2459,7 @@ extern "rust-intrinsic" {
|
||||
/// ```no_run
|
||||
/// #![feature(const_eval_select)]
|
||||
/// #![feature(core_intrinsics)]
|
||||
/// # #![allow(internal_features)]
|
||||
/// use std::hint::unreachable_unchecked;
|
||||
/// use std::intrinsics::const_eval_select;
|
||||
///
|
||||
|
@ -116,6 +116,7 @@
|
||||
#![feature(get_many_mut)]
|
||||
#![feature(offset_of)]
|
||||
#![feature(iter_map_windows)]
|
||||
#![allow(internal_features)]
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
#![deny(fuzzy_provenance_casts)]
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#![cfg(feature = "sysroot-abi")]
|
||||
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
|
||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
|
||||
#![allow(unreachable_pub)]
|
||||
#![allow(unreachable_pub, internal_features)]
|
||||
|
||||
extern crate proc_macro;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user