1
Fork 0

Rollup merge of #124324 - nnethercote:minor-ast-cleanups, r=estebank

Minor AST cleanups

r? ``@estebank``
This commit is contained in:
Matthias Krüger 2024-04-25 06:31:04 +02:00 committed by GitHub
commit fc6070cd8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 79 additions and 90 deletions

View file

@ -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 {