Upgrade to Rust 1.82 (#13816)

This commit is contained in:
Micha Reiser 2024-10-19 16:05:50 +02:00 committed by GitHub
parent bd33b4972d
commit 2ff36530c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 58 additions and 50 deletions

View file

@ -90,9 +90,10 @@ fn attributes_for_prefix(
attributes: &BTreeMap<String, &[Attribute]>,
) -> proc_macro2::TokenStream {
let attrs = intersection_all(codes.iter().map(|code| attributes[code]));
match attrs.as_slice() {
[] => quote!(),
[..] => quote!(#(#attrs)*),
if attrs.is_empty() {
quote!()
} else {
quote!(#(#attrs)*)
}
}