File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff 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`.
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments