Replace more Name::to_string usages with Name::to_smol_str

This commit is contained in:
Lukas Wirth
2021-11-04 18:12:05 +01:00
parent 962be38004
commit 439a8194b0
24 changed files with 49 additions and 41 deletions

View File

@@ -122,7 +122,7 @@ pub enum MacroCallKind {
},
Derive {
ast_id: AstId<ast::Item>,
derive_name: String,
derive_name: Box<str>,
/// Syntactical index of the invoking `#[derive]` attribute.
///
/// Outer attributes are counted first, then inner attributes. This does not support
@@ -131,7 +131,7 @@ pub enum MacroCallKind {
},
Attr {
ast_id: AstId<ast::Item>,
attr_name: String,
attr_name: Box<str>,
attr_args: (tt::Subtree, mbe::TokenMap),
/// Syntactical index of the invoking `#[attribute]`.
///