diff options
Diffstat (limited to 'compiler/rustc_attr_parsing/src/attributes/repr.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/attributes/repr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/repr.rs b/compiler/rustc_attr_parsing/src/attributes/repr.rs index ab523ce0038..69316541e19 100644 --- a/compiler/rustc_attr_parsing/src/attributes/repr.rs +++ b/compiler/rustc_attr_parsing/src/attributes/repr.rs @@ -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, DUMMY_SP) |
