File tree 6 files changed +8
-8
lines changed
compiler/rustc_attr_parsing/src/attributes
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use crate::session_diagnostics;
10
10
11
11
pub ( crate ) struct AllowInternalUnstableParser ;
12
12
impl < S : Stage > CombineAttributeParser < S > for AllowInternalUnstableParser {
13
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: allow_internal_unstable] ;
13
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: allow_internal_unstable] ;
14
14
type Item = ( Symbol , Span ) ;
15
15
const CONVERT : ConvertFn < Self :: Item > = AttributeKind :: AllowInternalUnstable ;
16
16
@@ -26,7 +26,7 @@ impl<S: Stage> CombineAttributeParser<S> for AllowInternalUnstableParser {
26
26
27
27
pub ( crate ) struct AllowConstFnUnstableParser ;
28
28
impl < S : Stage > CombineAttributeParser < S > for AllowConstFnUnstableParser {
29
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: rustc_allow_const_fn_unstable] ;
29
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: rustc_allow_const_fn_unstable] ;
30
30
type Item = Symbol ;
31
31
const CONVERT : ConvertFn < Self :: Item > = AttributeKind :: AllowConstFnUnstable ;
32
32
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ fn get<S: Stage>(
46
46
}
47
47
48
48
impl < S : Stage > SingleAttributeParser < S > for DeprecationParser {
49
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: deprecated] ;
49
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: deprecated] ;
50
50
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepFirst ;
51
51
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
52
52
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ pub(crate) trait AttributeParser<S: Stage>: Default + 'static {
74
74
/// [`SingleAttributeParser`] can only convert attributes one-to-one, and cannot combine multiple
75
75
/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
76
76
pub ( crate ) trait SingleAttributeParser < S : Stage > : ' static {
77
- const PATH : & ' static [ rustc_span:: Symbol ] ;
77
+ const PATH : & [ rustc_span:: Symbol ] ;
78
78
const ATTRIBUTE_ORDER : AttributeOrder ;
79
79
const ON_DUPLICATE : OnDuplicate < S > ;
80
80
@@ -210,7 +210,7 @@ type ConvertFn<E> = fn(ThinVec<E>) -> AttributeKind;
210
210
/// [`CombineAttributeParser`] can only convert a single kind of attribute, and cannot combine multiple
211
211
/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
212
212
pub ( crate ) trait CombineAttributeParser < S : Stage > : ' static {
213
- const PATH : & ' static [ rustc_span:: Symbol ] ;
213
+ const PATH : & [ rustc_span:: Symbol ] ;
214
214
215
215
type Item ;
216
216
const CONVERT : ConvertFn < Self :: Item > ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub(crate) struct ReprParser;
21
21
22
22
impl < S : Stage > CombineAttributeParser < S > for ReprParser {
23
23
type Item = ( ReprAttr , Span ) ;
24
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: repr] ;
24
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: repr] ;
25
25
const CONVERT : ConvertFn < Self :: Item > = AttributeKind :: Repr ;
26
26
27
27
fn extend < ' c > (
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl<S: Stage> AttributeParser<S> for BodyStabilityParser {
121
121
pub ( crate ) struct ConstStabilityIndirectParser ;
122
122
// FIXME(jdonszelmann): single word attribute group when we have these
123
123
impl < S : Stage > SingleAttributeParser < S > for ConstStabilityIndirectParser {
124
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: rustc_const_stable_indirect] ;
124
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: rustc_const_stable_indirect] ;
125
125
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepFirst ;
126
126
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Ignore ;
127
127
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub(crate) struct TransparencyParser;
12
12
#[ allow( rustc:: untranslatable_diagnostic) ]
13
13
#[ allow( rustc:: diagnostic_outside_of_impl) ]
14
14
impl < S : Stage > SingleAttributeParser < S > for TransparencyParser {
15
- const PATH : & ' static [ rustc_span:: Symbol ] = & [ sym:: rustc_macro_transparency] ;
15
+ const PATH : & [ rustc_span:: Symbol ] = & [ sym:: rustc_macro_transparency] ;
16
16
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepFirst ;
17
17
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Custom ( |cx, used, unused| {
18
18
cx. dcx ( ) . span_err ( vec ! [ used, unused] , "multiple macro transparency attributes" ) ;
You can’t perform that action at this time.
0 commit comments