@@ -4,7 +4,7 @@ use super::prelude::*;
44use crate :: session_diagnostics;
55
66pub ( crate ) struct AllowInternalUnstableParser ;
7- impl < S : Stage > CombineAttributeParser < S > for AllowInternalUnstableParser {
7+ impl CombineAttributeParser for AllowInternalUnstableParser {
88 const PATH : & [ Symbol ] = & [ sym:: allow_internal_unstable] ;
99 type Item = ( Symbol , Span ) ;
1010 const CONVERT : ConvertFn < Self :: Item > =
@@ -18,17 +18,17 @@ impl<S: Stage> CombineAttributeParser<S> for AllowInternalUnstableParser {
1818 const TEMPLATE : AttributeTemplate = template ! ( Word , List : & [ "feat1, feat2, ..." ] ) ;
1919
2020 fn extend (
21- cx : & mut AcceptContext < ' _ , ' _ , S > ,
21+ cx : & mut AcceptContext < ' _ , ' _ > ,
2222 args : & ArgParser ,
2323 ) -> impl IntoIterator < Item = Self :: Item > {
24- parse_unstable ( cx, args, <Self as CombineAttributeParser < S > >:: PATH [ 0 ] )
24+ parse_unstable ( cx, args, <Self as CombineAttributeParser >:: PATH [ 0 ] )
2525 . into_iter ( )
2626 . zip ( iter:: repeat ( cx. attr_span ) )
2727 }
2828}
2929
3030pub ( crate ) struct UnstableFeatureBoundParser ;
31- impl < S : Stage > CombineAttributeParser < S > for UnstableFeatureBoundParser {
31+ impl CombineAttributeParser for UnstableFeatureBoundParser {
3232 const PATH : & [ rustc_span:: Symbol ] = & [ sym:: unstable_feature_bound] ;
3333 type Item = ( Symbol , Span ) ;
3434 const CONVERT : ConvertFn < Self :: Item > = |items, _| AttributeKind :: UnstableFeatureBound ( items) ;
@@ -40,20 +40,20 @@ impl<S: Stage> CombineAttributeParser<S> for UnstableFeatureBoundParser {
4040 const TEMPLATE : AttributeTemplate = template ! ( Word , List : & [ "feat1, feat2, ..." ] ) ;
4141
4242 fn extend (
43- cx : & mut AcceptContext < ' _ , ' _ , S > ,
43+ cx : & mut AcceptContext < ' _ , ' _ > ,
4444 args : & ArgParser ,
4545 ) -> impl IntoIterator < Item = Self :: Item > {
4646 if !cx. features ( ) . staged_api ( ) {
4747 cx. emit_err ( session_diagnostics:: StabilityOutsideStd { span : cx. attr_span } ) ;
4848 }
49- parse_unstable ( cx, args, <Self as CombineAttributeParser < S > >:: PATH [ 0 ] )
49+ parse_unstable ( cx, args, <Self as CombineAttributeParser >:: PATH [ 0 ] )
5050 . into_iter ( )
5151 . zip ( iter:: repeat ( cx. attr_span ) )
5252 }
5353}
5454
5555pub ( crate ) struct RustcAllowConstFnUnstableParser ;
56- impl < S : Stage > CombineAttributeParser < S > for RustcAllowConstFnUnstableParser {
56+ impl CombineAttributeParser for RustcAllowConstFnUnstableParser {
5757 const PATH : & [ Symbol ] = & [ sym:: rustc_allow_const_fn_unstable] ;
5858 type Item = Symbol ;
5959 const CONVERT : ConvertFn < Self :: Item > =
@@ -67,15 +67,15 @@ impl<S: Stage> CombineAttributeParser<S> for RustcAllowConstFnUnstableParser {
6767 const TEMPLATE : AttributeTemplate = template ! ( Word , List : & [ "feat1, feat2, ..." ] ) ;
6868
6969 fn extend (
70- cx : & mut AcceptContext < ' _ , ' _ , S > ,
70+ cx : & mut AcceptContext < ' _ , ' _ > ,
7171 args : & ArgParser ,
7272 ) -> impl IntoIterator < Item = Self :: Item > {
73- parse_unstable ( cx, args, <Self as CombineAttributeParser < S > >:: PATH [ 0 ] )
73+ parse_unstable ( cx, args, <Self as CombineAttributeParser >:: PATH [ 0 ] )
7474 }
7575}
7676
77- fn parse_unstable < S : Stage > (
78- cx : & AcceptContext < ' _ , ' _ , S > ,
77+ fn parse_unstable (
78+ cx : & AcceptContext < ' _ , ' _ > ,
7979 args : & ArgParser ,
8080 symbol : Symbol ,
8181) -> impl IntoIterator < Item = Symbol > {
0 commit comments