File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1036,21 +1036,21 @@ pub fn allow_internal_unstable<'a>(
1036
1036
sess : & ' a Session ,
1037
1037
attrs : & ' a [ Attribute ] ,
1038
1038
) -> Option < impl Iterator < Item = Symbol > + ' a > {
1039
- allow_unstable ( sess, attrs, sym:: allow_internal_unstable)
1039
+ Some ( allow_unstable ( sess, attrs, sym:: allow_internal_unstable) )
1040
1040
}
1041
1041
1042
1042
pub fn rustc_allow_const_fn_unstable < ' a > (
1043
1043
sess : & ' a Session ,
1044
1044
attrs : & ' a [ Attribute ] ,
1045
1045
) -> Option < impl Iterator < Item = Symbol > + ' a > {
1046
- allow_unstable ( sess, attrs, sym:: rustc_allow_const_fn_unstable)
1046
+ Some ( allow_unstable ( sess, attrs, sym:: rustc_allow_const_fn_unstable) )
1047
1047
}
1048
1048
1049
1049
fn allow_unstable < ' a > (
1050
1050
sess : & ' a Session ,
1051
1051
attrs : & ' a [ Attribute ] ,
1052
1052
symbol : Symbol ,
1053
- ) -> Option < impl Iterator < Item = Symbol > + ' a > {
1053
+ ) -> impl Iterator < Item = Symbol > + ' a {
1054
1054
let attrs = sess. filter_by_name ( attrs, symbol) ;
1055
1055
let list = attrs
1056
1056
. filter_map ( move |attr| {
@@ -1064,7 +1064,7 @@ fn allow_unstable<'a>(
1064
1064
} )
1065
1065
. flatten ( ) ;
1066
1066
1067
- Some ( list. into_iter ( ) . filter_map ( move |it| {
1067
+ list. into_iter ( ) . filter_map ( move |it| {
1068
1068
let name = it. ident ( ) . map ( |ident| ident. name ) ;
1069
1069
if name. is_none ( ) {
1070
1070
sess. diagnostic ( ) . span_err (
@@ -1073,5 +1073,5 @@ fn allow_unstable<'a>(
1073
1073
) ;
1074
1074
}
1075
1075
name
1076
- } ) )
1076
+ } )
1077
1077
}
You can’t perform that action at this time.
0 commit comments