Rename MetaItemParser::path_without_args as MetaItemParser::path.

And avoid the clone.
This commit is contained in:
Nicholas Nethercote
2025-05-20 12:41:56 +10:00
parent 2cd2d24967
commit e5c78de85c
6 changed files with 13 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ fn parse_repr(cx: &AcceptContext<'_>, param: &MetaItemParser<'_>) -> Option<Repr
// FIXME(jdonszelmann): invert the parsing here to match on the word first and then the
// structure.
let (name, ident_span) = if let Some(ident) = param.path_without_args().word() {
let (name, ident_span) = if let Some(ident) = param.path().word() {
(Some(ident.name), ident.span)
} else {
(None, rustc_span::DUMMY_SP)