|
12 | 12 | //! - [`CombineAttributeParser`]: makes it easy to implement an attribute which should combine the
|
13 | 13 | //! contents of attributes, if an attribute appear multiple times in a list
|
14 | 14 | //!
|
15 |
| -//! Attributes should be added to [`ATTRIBUTE_MAPPING`](crate::context::ATTRIBUTE_MAPPING) to be parsed. |
| 15 | +//! Attributes should be added to `crate::context:ATTRIBUTE_MAPPING` to be parsed. |
16 | 16 |
|
17 | 17 | use std::marker::PhantomData;
|
18 | 18 |
|
@@ -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