@@ -74,7 +74,7 @@ pub(crate) trait AttributeParser<S: Stage>: Default + 'static {
7474/// [`SingleAttributeParser`] can only convert attributes one-to-one, and cannot combine multiple
7575/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
7676pub ( crate ) trait SingleAttributeParser < S : Stage > : ' static {
77- const PATH : & ' static [ rustc_span:: Symbol ] ;
77+ const PATH : & [ rustc_span:: Symbol ] ;
7878 const ATTRIBUTE_ORDER : AttributeOrder ;
7979 const ON_DUPLICATE : OnDuplicate < S > ;
8080
@@ -142,7 +142,7 @@ pub(crate) enum OnDuplicate<S: Stage> {
142142 /// Custom function called when a duplicate attribute is found.
143143 ///
144144 /// - `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 `])
146146 /// - `used` is the span of the attribute that was used in favor of the unused attribute
147147 Custom ( fn ( cx : & AcceptContext < ' _ , ' _ , S > , used : Span , unused : Span ) ) ,
148148}
@@ -210,7 +210,7 @@ type ConvertFn<E> = fn(ThinVec<E>) -> AttributeKind;
210210/// [`CombineAttributeParser`] can only convert a single kind of attribute, and cannot combine multiple
211211/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
212212pub ( crate ) trait CombineAttributeParser < S : Stage > : ' static {
213- const PATH : & ' static [ rustc_span:: Symbol ] ;
213+ const PATH : & [ rustc_span:: Symbol ] ;
214214
215215 type Item ;
216216 const CONVERT : ConvertFn < Self :: Item > ;
0 commit comments