@@ -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
@@ -142,7 +142,7 @@ pub(crate) enum OnDuplicate<S: Stage> {
142
142
/// Custom function called when a duplicate attribute is found.
143
143
///
144
144
/// - `unused` is the span of the attribute that was unused or bad because of some
145
- /// duplicate reason (see [`AttributeDuplicates `])
145
+ /// duplicate reason (see [`AttributeOrder `])
146
146
/// - `used` is the span of the attribute that was used in favor of the unused attribute
147
147
Custom ( fn ( cx : & AcceptContext < ' _ , ' _ , S > , used : Span , unused : Span ) ) ,
148
148
}
@@ -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 > ;
0 commit comments