Remove __rust_unstable_column
This commit is contained in:
parent
a9ecfd7295
commit
263e3c5950
9 changed files with 2 additions and 30 deletions
|
@ -2,7 +2,7 @@
|
|||
///
|
||||
/// For details, see `std::macros`.
|
||||
#[macro_export]
|
||||
#[allow_internal_unstable(core_panic, __rust_unstable_column)]
|
||||
#[allow_internal_unstable(core_panic)]
|
||||
#[stable(feature = "core", since = "1.6.0")]
|
||||
macro_rules! panic {
|
||||
() => (
|
||||
|
@ -927,13 +927,6 @@ pub(crate) mod builtin {
|
|||
#[macro_export]
|
||||
macro_rules! column { () => { /* compiler built-in */ } }
|
||||
|
||||
/// Same as `column`, but less likely to be shadowed.
|
||||
#[unstable(feature = "__rust_unstable_column", issue = "0",
|
||||
reason = "internal implementation detail of the `panic` macro")]
|
||||
#[rustc_builtin_macro]
|
||||
#[macro_export]
|
||||
macro_rules! __rust_unstable_column { () => { /* compiler built-in */ } }
|
||||
|
||||
/// Expands to the file name in which it was invoked.
|
||||
///
|
||||
/// With [`line!`] and [`column!`], these macros provide debugging information for
|
||||
|
|
|
@ -56,7 +56,6 @@ pub use crate::hash::macros::Hash;
|
|||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[doc(no_inline)]
|
||||
pub use crate::{
|
||||
__rust_unstable_column,
|
||||
asm,
|
||||
assert,
|
||||
cfg,
|
||||
|
|
|
@ -228,7 +228,6 @@
|
|||
// std is implemented with unstable features, many of which are internal
|
||||
// compiler details that will never be stable
|
||||
// NB: the following list is sorted to minimize merge conflicts.
|
||||
#![feature(__rust_unstable_column)]
|
||||
#![feature(alloc_error_handler)]
|
||||
#![feature(alloc_layout_extra)]
|
||||
#![feature(allocator_api)]
|
||||
|
@ -550,7 +549,6 @@ pub use core::{
|
|||
option_env,
|
||||
stringify,
|
||||
// Unstable
|
||||
__rust_unstable_column,
|
||||
asm,
|
||||
concat_idents,
|
||||
format_args_nl,
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
/// ```
|
||||
#[macro_export]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[allow_internal_unstable(__rust_unstable_column, libstd_sys_internals)]
|
||||
#[allow_internal_unstable(libstd_sys_internals)]
|
||||
macro_rules! panic {
|
||||
() => ({
|
||||
$crate::panic!("explicit panic")
|
||||
|
|
|
@ -40,7 +40,6 @@ pub use crate::result::Result::{self, Ok, Err};
|
|||
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
|
||||
#[doc(no_inline)]
|
||||
pub use core::prelude::v1::{
|
||||
__rust_unstable_column,
|
||||
asm,
|
||||
assert,
|
||||
cfg,
|
||||
|
|
|
@ -57,7 +57,6 @@ pub fn register_builtin_macros(resolver: &mut dyn syntax::ext::base::Resolver, e
|
|||
}
|
||||
|
||||
register_bang! {
|
||||
__rust_unstable_column: source_util::expand_column,
|
||||
asm: asm::expand_asm,
|
||||
assert: assert::expand_assert,
|
||||
cfg: cfg::expand_cfg,
|
||||
|
|
|
@ -610,7 +610,6 @@ symbols! {
|
|||
rust_eh_personality,
|
||||
rust_eh_unwind_resume,
|
||||
rust_oom,
|
||||
__rust_unstable_column,
|
||||
rvalue_static_promotion,
|
||||
sanitizer_runtime,
|
||||
_Self,
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
fn main() {
|
||||
println!("{}", __rust_unstable_column!());
|
||||
//~^ ERROR use of unstable library feature '__rust_unstable_column'
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
error[E0658]: use of unstable library feature '__rust_unstable_column': internal implementation detail of the `panic` macro
|
||||
--> $DIR/rust-unstable-column-gated.rs:2:20
|
||||
|
|
||||
LL | println!("{}", __rust_unstable_column!());
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add `#![feature(__rust_unstable_column)]` to the crate attributes to enable
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0658`.
|
Loading…
Add table
Add a link
Reference in a new issue