mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
rustc_span: Remove obsolete allow_internal_unstable_backcompat_hack
This commit is contained in:
parent
b86674e7cc
commit
0038eaee6b
@ -510,11 +510,10 @@ impl Span {
|
||||
/// items can be used (that is, a macro marked with
|
||||
/// `#[allow_internal_unstable]`).
|
||||
pub fn allows_unstable(&self, feature: Symbol) -> bool {
|
||||
self.ctxt().outer_expn_data().allow_internal_unstable.map_or(false, |features| {
|
||||
features
|
||||
.iter()
|
||||
.any(|&f| f == feature || f == sym::allow_internal_unstable_backcompat_hack)
|
||||
})
|
||||
self.ctxt()
|
||||
.outer_expn_data()
|
||||
.allow_internal_unstable
|
||||
.map_or(false, |features| features.iter().any(|&f| f == feature))
|
||||
}
|
||||
|
||||
/// Checks if this span arises from a compiler desugaring of kind `kind`.
|
||||
|
@ -252,7 +252,6 @@ symbols! {
|
||||
allow_fail,
|
||||
allow_internal_unsafe,
|
||||
allow_internal_unstable,
|
||||
allow_internal_unstable_backcompat_hack,
|
||||
allowed,
|
||||
always,
|
||||
and,
|
||||
|
Loading…
Reference in New Issue
Block a user