We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path
1 parent 8cb2820 commit 0a32a02Copy full SHA for 0a32a02
src/modules/visitor.rs
@@ -1,6 +1,6 @@
1
use rustc_ast::ast;
2
use rustc_ast::visit::Visitor;
3
-use rustc_span::Symbol;
+use rustc_span::{Symbol, sym};
4
use tracing::debug;
5
6
use crate::attr::MetaVisitor;
@@ -90,7 +90,7 @@ impl<'ast> MetaVisitor<'ast> for PathVisitor {
90
meta_item: &'ast ast::MetaItem,
91
lit: &'ast ast::MetaItemLit,
92
) {
93
- if meta_item.has_name(Symbol::intern("path")) && lit.kind.is_str() {
+ if meta_item.has_name(sym::path) && lit.kind.is_str() {
94
self.paths.push(meta_item_lit_to_str(lit));
95
}
96
0 commit comments