Rename MetaItemParser::path_without_args as MetaItemParser::path.
And avoid the clone.
This commit is contained in:
@@ -260,7 +260,7 @@ impl<'sess> AttributeParser<'sess> {
|
||||
// }
|
||||
ast::AttrKind::Normal(n) => {
|
||||
let parser = MetaItemParser::from_attr(n, self.dcx());
|
||||
let path = parser.path_without_args();
|
||||
let path = parser.path();
|
||||
let args = parser.args();
|
||||
let parts = path.segments().map(|i| i.name).collect::<Vec<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user