17
17
use std:: marker:: PhantomData ;
18
18
19
19
use rustc_attr_data_structures:: AttributeKind ;
20
- use rustc_span:: Span ;
20
+ use rustc_span:: { Span , Symbol } ;
21
21
use thin_vec:: ThinVec ;
22
22
23
23
use crate :: context:: { AcceptContext , FinalizeContext } ;
@@ -33,7 +33,7 @@ pub(crate) mod transparency;
33
33
pub ( crate ) mod util;
34
34
35
35
type AcceptFn < T > = fn ( & mut T , & AcceptContext < ' _ > , & ArgParser < ' _ > ) ;
36
- type AcceptMapping < T > = & ' static [ ( & ' static [ rustc_span :: Symbol ] , AcceptFn < T > ) ] ;
36
+ type AcceptMapping < T > = & ' static [ ( & ' static [ Symbol ] , AcceptFn < T > ) ] ;
37
37
38
38
/// An [`AttributeParser`] is a type which searches for syntactic attributes.
39
39
///
@@ -72,7 +72,7 @@ pub(crate) trait AttributeParser: Default + 'static {
72
72
/// [`SingleAttributeParser`] can only convert attributes one-to-one, and cannot combine multiple
73
73
/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
74
74
pub ( crate ) trait SingleAttributeParser : ' static {
75
- const PATH : & ' static [ rustc_span :: Symbol ] ;
75
+ const PATH : & ' static [ Symbol ] ;
76
76
77
77
/// Caled when a duplicate attribute is found.
78
78
///
@@ -119,7 +119,7 @@ type ConvertFn<E> = fn(ThinVec<E>) -> AttributeKind;
119
119
/// [`CombineAttributeParser`] can only convert a single kind of attribute, and cannot combine multiple
120
120
/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
121
121
pub ( crate ) trait CombineAttributeParser : ' static {
122
- const PATH : & ' static [ rustc_span :: Symbol ] ;
122
+ const PATH : & ' static [ Symbol ] ;
123
123
124
124
type Item ;
125
125
const CONVERT : ConvertFn < Self :: Item > ;
0 commit comments