File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -510,11 +510,10 @@ impl Span {
510
510
/// items can be used (that is, a macro marked with
511
511
/// `#[allow_internal_unstable]`).
512
512
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) )
518
517
}
519
518
520
519
/// Checks if this span arises from a compiler desugaring of kind `kind`.
Original file line number Diff line number Diff line change @@ -252,7 +252,6 @@ symbols! {
252
252
allow_fail,
253
253
allow_internal_unsafe,
254
254
allow_internal_unstable,
255
- allow_internal_unstable_backcompat_hack,
256
255
allowed,
257
256
always,
258
257
and,
You can’t perform that action at this time.
0 commit comments