File tree 1 file changed +3
-2
lines changed
compiler/rustc_expand/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ impl SyntaxExtension {
757
757
attrs : & [ ast:: Attribute ] ,
758
758
) -> SyntaxExtension {
759
759
let allow_internal_unstable =
760
- Some ( attr:: allow_internal_unstable ( sess, & attrs) . collect :: < Vec < Symbol > > ( ) . into ( ) ) ;
760
+ attr:: allow_internal_unstable ( sess, & attrs) . collect :: < Vec < Symbol > > ( ) ;
761
761
762
762
let mut local_inner_macros = false ;
763
763
if let Some ( macro_export) = sess. find_by_name ( attrs, sym:: macro_export) {
@@ -779,7 +779,8 @@ impl SyntaxExtension {
779
779
SyntaxExtension {
780
780
kind,
781
781
span,
782
- allow_internal_unstable,
782
+ allow_internal_unstable : ( !allow_internal_unstable. is_empty ( ) )
783
+ . then ( || allow_internal_unstable. into ( ) ) ,
783
784
allow_internal_unsafe : sess. contains_name ( attrs, sym:: allow_internal_unsafe) ,
784
785
local_inner_macros,
785
786
stability,
You can’t perform that action at this time.
0 commit comments