File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
compiler/rustc_expand/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -768,13 +768,8 @@ impl SyntaxExtension {
768
768
name : Symbol ,
769
769
attrs : & [ ast:: Attribute ] ,
770
770
) -> SyntaxExtension {
771
- let allow_internal_unstable = {
772
- let mut feat_list = Vec :: new ( ) ;
773
- attr:: allow_internal_unstable ( sess, & attrs) . map ( |features| feat_list. extend ( features) ) ;
774
- attr:: rustc_allow_const_fn_unstable ( sess, & attrs)
775
- . map ( |features| feat_list. extend ( features) ) ;
776
- Some ( feat_list. into ( ) )
777
- } ;
771
+ let allow_internal_unstable = attr:: allow_internal_unstable ( sess, & attrs)
772
+ . map ( |features| features. collect :: < Vec < Symbol > > ( ) . into ( ) ) ;
778
773
779
774
let mut local_inner_macros = false ;
780
775
if let Some ( macro_export) = sess. find_by_name ( attrs, sym:: macro_export) {
You can’t perform that action at this time.
0 commit comments