Skip to content

Commit

Permalink
Remove __rust_unstable_column
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Aug 15, 2019
1 parent a9ecfd7 commit 263e3c5
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 30 deletions.
9 changes: 1 addition & 8 deletions src/libcore/macros.rs
Expand Up @@ -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 {
() => (
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/libcore/prelude/v1.rs
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/libstd/lib.rs
Expand Up @@ -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)]
Expand Down Expand Up @@ -550,7 +549,6 @@ pub use core::{
option_env,
stringify,
// Unstable
__rust_unstable_column,
asm,
concat_idents,
format_args_nl,
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/macros.rs
Expand Up @@ -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")
Expand Down
1 change: 0 additions & 1 deletion src/libstd/prelude/v1.rs
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax_ext/lib.rs
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax_pos/symbol.rs
Expand Up @@ -610,7 +610,6 @@ symbols! {
rust_eh_personality,
rust_eh_unwind_resume,
rust_oom,
__rust_unstable_column,
rvalue_static_promotion,
sanitizer_runtime,
_Self,
Expand Down
4 changes: 0 additions & 4 deletions src/test/ui/rust-unstable-column-gated.rs

This file was deleted.

11 changes: 0 additions & 11 deletions src/test/ui/rust-unstable-column-gated.stderr

This file was deleted.

0 comments on commit 263e3c5

Please sign in to comment.