diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-06-04 16:24:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-04 16:24:06 +0200 |
| commit | c1e8fe760b68a934e9ea4681edb1e4f5a66c7eb9 (patch) | |
| tree | fec9fc00188c8bd65b21a5b552e497027bdd2d18 /compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs | |
| parent | 61413aea937d9663d01b62902535f8d4ec85cc95 (diff) | |
| parent | e5c78de85c01e576671f9ba0c880520baf0d938d (diff) | |
| download | rust-c1e8fe760b68a934e9ea4681edb1e4f5a66c7eb9.tar.gz rust-c1e8fe760b68a934e9ea4681edb1e4f5a66c7eb9.zip | |
Rollup merge of #141271 - nnethercote:attr-streamline, r=jdonszelmann
Streamline some attr parsing APIs r? ``@jdonszelmann``
Diffstat (limited to 'compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs b/compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs index b9b6ca26119..d0465546b73 100644 --- a/compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs +++ b/compiler/rustc_attr_parsing/src/attributes/allow_unstable.rs @@ -53,7 +53,7 @@ fn parse_unstable<'a>( for param in list.mixed() { let param_span = param.span(); - if let Some(ident) = param.meta_item().and_then(|i| i.path_without_args().word()) { + if let Some(ident) = param.meta_item().and_then(|i| i.path().word()) { res.push(ident.name); } else { cx.emit_err(session_diagnostics::ExpectsFeatures { |
