Skip to content

Commit 526dc4b

Browse files
Revert "Use name![derive]"
This reverts commit d6187de.
1 parent dea3ff6 commit 526dc4b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

crates/hir_expand/src/input.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ use syntax::{
55
AstNode, SyntaxNode,
66
};
77

8-
use crate::{
9-
db::AstDatabase,
10-
name::{name, AsName},
11-
AttrId, LazyMacroId, MacroCallKind, MacroCallLoc,
12-
};
8+
use crate::{db::AstDatabase, name::AsName, AttrId, LazyMacroId, MacroCallKind, MacroCallLoc};
139

1410
pub(crate) fn process_macro_input(
1511
db: &dyn AstDatabase,
@@ -39,7 +35,7 @@ fn remove_derives_up_to(item: ast::Item, attr: AttrId) -> ast::Item {
3935
if let Some(name) =
4036
attr.path().and_then(|path| path.as_single_segment()).and_then(|seg| seg.name_ref())
4137
{
42-
if name.as_name() == name![derive] {
38+
if name.as_name().to_string() == "derive" {
4339
attr.syntax().detach();
4440
}
4541
}

0 commit comments

Comments
 (0)