@@ -54,7 +54,7 @@ impl RawAttrs {
5454 let span = span_map. span_for_range ( comment. syntax ( ) . text_range ( ) ) ;
5555 Attr {
5656 id,
57- input : Some ( Interned :: new ( AttrInput :: Literal ( tt:: Literal {
57+ input : Some ( Box :: new ( AttrInput :: Literal ( tt:: Literal {
5858 text : SmolStr :: new ( format_smolstr ! ( "\" {}\" " , Self :: escape_chars( doc) ) ) ,
5959 span,
6060 } ) ) ) ,
@@ -199,7 +199,7 @@ impl AttrId {
199199pub struct Attr {
200200 pub id : AttrId ,
201201 pub path : Interned < ModPath > ,
202- pub input : Option < Interned < AttrInput > > ,
202+ pub input : Option < Box < AttrInput > > ,
203203 pub ctxt : SyntaxContextId ,
204204}
205205
@@ -234,7 +234,7 @@ impl Attr {
234234 } ) ?) ;
235235 let span = span_map. span_for_range ( range) ;
236236 let input = if let Some ( ast:: Expr :: Literal ( lit) ) = ast. expr ( ) {
237- Some ( Interned :: new ( AttrInput :: Literal ( tt:: Literal {
237+ Some ( Box :: new ( AttrInput :: Literal ( tt:: Literal {
238238 text : lit. token ( ) . text ( ) . into ( ) ,
239239 span,
240240 } ) ) )
@@ -245,7 +245,7 @@ impl Attr {
245245 span,
246246 DocCommentDesugarMode :: ProcMacro ,
247247 ) ;
248- Some ( Interned :: new ( AttrInput :: TokenTree ( Box :: new ( tree) ) ) )
248+ Some ( Box :: new ( AttrInput :: TokenTree ( Box :: new ( tree) ) ) )
249249 } else {
250250 None
251251 } ;
@@ -281,12 +281,12 @@ impl Attr {
281281
282282 let input = match input. first ( ) {
283283 Some ( tt:: TokenTree :: Subtree ( tree) ) => {
284- Some ( Interned :: new ( AttrInput :: TokenTree ( Box :: new ( tree. clone ( ) ) ) ) )
284+ Some ( Box :: new ( AttrInput :: TokenTree ( Box :: new ( tree. clone ( ) ) ) ) )
285285 }
286286 Some ( tt:: TokenTree :: Leaf ( tt:: Leaf :: Punct ( tt:: Punct { char : '=' , .. } ) ) ) => {
287287 let input = match input. get ( 1 ) {
288288 Some ( tt:: TokenTree :: Leaf ( tt:: Leaf :: Literal ( lit) ) ) => {
289- Some ( Interned :: new ( AttrInput :: Literal ( lit. clone ( ) ) ) )
289+ Some ( Box :: new ( AttrInput :: Literal ( lit. clone ( ) ) ) )
290290 }
291291 _ => None ,
292292 } ;
0 commit comments