Skip to content

Commit 0038eae

Browse files
committed
rustc_span: Remove obsolete allow_internal_unstable_backcompat_hack
1 parent b86674e commit 0038eae

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

compiler/rustc_span/src/lib.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,10 @@ impl Span {
510510
/// items can be used (that is, a macro marked with
511511
/// `#[allow_internal_unstable]`).
512512
pub fn allows_unstable(&self, feature: Symbol) -> bool {
513-
self.ctxt().outer_expn_data().allow_internal_unstable.map_or(false, |features| {
514-
features
515-
.iter()
516-
.any(|&f| f == feature || f == sym::allow_internal_unstable_backcompat_hack)
517-
})
513+
self.ctxt()
514+
.outer_expn_data()
515+
.allow_internal_unstable
516+
.map_or(false, |features| features.iter().any(|&f| f == feature))
518517
}
519518

520519
/// Checks if this span arises from a compiler desugaring of kind `kind`.

compiler/rustc_span/src/symbol.rs

-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ symbols! {
252252
allow_fail,
253253
allow_internal_unsafe,
254254
allow_internal_unstable,
255-
allow_internal_unstable_backcompat_hack,
256255
allowed,
257256
always,
258257
and,

0 commit comments

Comments
 (0)