|
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_PARSERS`](crate::context::ATTRIBUTE_PARSERS) to be parsed. |
| 15 | +//! Attributes should be added to `crate::context::ATTRIBUTE_PARSERS` to be parsed. |
16 | 16 |
|
17 | 17 | use std::marker::PhantomData; |
18 | 18 |
|
@@ -83,7 +83,7 @@ pub(crate) trait AttributeParser<S: Stage>: Default + 'static { |
83 | 83 | /// [`SingleAttributeParser`] can only convert attributes one-to-one, and cannot combine multiple |
84 | 84 | /// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example. |
85 | 85 | pub(crate) trait SingleAttributeParser<S: Stage>: 'static { |
86 | | - const PATH: &'static [Symbol]; |
| 86 | + const PATH: &[Symbol]; |
87 | 87 | const ATTRIBUTE_ORDER: AttributeOrder; |
88 | 88 | const ON_DUPLICATE: OnDuplicate<S>; |
89 | 89 |
|
@@ -151,7 +151,7 @@ pub(crate) enum OnDuplicate<S: Stage> { |
151 | 151 | /// Custom function called when a duplicate attribute is found. |
152 | 152 | /// |
153 | 153 | /// - `unused` is the span of the attribute that was unused or bad because of some |
154 | | - /// duplicate reason (see [`AttributeDuplicates`]) |
| 154 | + /// duplicate reason (see [`AttributeOrder`]) |
155 | 155 | /// - `used` is the span of the attribute that was used in favor of the unused attribute |
156 | 156 | Custom(fn(cx: &AcceptContext<'_, '_, S>, used: Span, unused: Span)), |
157 | 157 | } |
@@ -217,7 +217,7 @@ type ConvertFn<E> = fn(ThinVec<E>) -> AttributeKind; |
217 | 217 | /// [`CombineAttributeParser`] can only convert a single kind of attribute, and cannot combine multiple |
218 | 218 | /// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example. |
219 | 219 | pub(crate) trait CombineAttributeParser<S: Stage>: 'static { |
220 | | - const PATH: &'static [Symbol]; |
| 220 | + const PATH: &[rustc_span::Symbol]; |
221 | 221 |
|
222 | 222 | type Item; |
223 | 223 | const CONVERT: ConvertFn<Self::Item>; |
|
0 commit comments