1717use std:: marker:: PhantomData ;
1818
1919use rustc_attr_data_structures:: AttributeKind ;
20- use rustc_span:: Span ;
20+ use rustc_span:: { Span , Symbol } ;
2121use thin_vec:: ThinVec ;
2222
2323use crate :: context:: { AcceptContext , FinalizeContext } ;
@@ -33,7 +33,7 @@ pub(crate) mod transparency;
3333pub ( crate ) mod util;
3434
3535type 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 > ) ] ;
3737
3838/// An [`AttributeParser`] is a type which searches for syntactic attributes.
3939///
@@ -72,7 +72,7 @@ pub(crate) trait AttributeParser: Default + 'static {
7272/// [`SingleAttributeParser`] can only convert attributes one-to-one, and cannot combine multiple
7373/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
7474pub ( crate ) trait SingleAttributeParser : ' static {
75- const PATH : & ' static [ rustc_span :: Symbol ] ;
75+ const PATH : & ' static [ Symbol ] ;
7676
7777 /// Caled when a duplicate attribute is found.
7878 ///
@@ -119,7 +119,7 @@ type ConvertFn<E> = fn(ThinVec<E>) -> AttributeKind;
119119/// [`CombineAttributeParser`] can only convert a single kind of attribute, and cannot combine multiple
120120/// attributes together like is necessary for `#[stable()]` and `#[unstable()]` for example.
121121pub ( crate ) trait CombineAttributeParser : ' static {
122- const PATH : & ' static [ rustc_span :: Symbol ] ;
122+ const PATH : & ' static [ Symbol ] ;
123123
124124 type Item ;
125125 const CONVERT : ConvertFn < Self :: Item > ;
0 commit comments