diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-25 06:31:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-25 06:31:04 +0200 |
| commit | fc6070cd8eab498a37a063ecbc5fbc0571d94bf5 (patch) | |
| tree | f965a61f69ae91b466d66a3b5c5ae4814580d2f0 /compiler/rustc_attr | |
| parent | a2d6b1b2d6253a6f254c7eff233eca1c766ec30e (diff) | |
| parent | 2ae0765ffb743de9845ee953bb6020db866e5b63 (diff) | |
| download | rust-fc6070cd8eab498a37a063ecbc5fbc0571d94bf5.tar.gz rust-fc6070cd8eab498a37a063ecbc5fbc0571d94bf5.zip | |
Rollup merge of #124324 - nnethercote:minor-ast-cleanups, r=estebank
Minor AST cleanups r? ``@estebank``
Diffstat (limited to 'compiler/rustc_attr')
| -rw-r--r-- | compiler/rustc_attr/src/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index 439f13e7635..1c2077372e1 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -986,7 +986,7 @@ pub fn parse_repr_attr(sess: &Session, attr: &Attribute) -> Vec<ReprAttr> { recognised = true; acc.push(h); } - } else if let Some((name, value)) = item.name_value_literal() { + } else if let Some((name, value)) = item.singleton_lit_list() { let mut literal_error = None; let mut err_span = item.span(); if name == sym::align { |
