about summary refs log tree commit diff
path: root/compiler/rustc_macros
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-10-25 22:26:15 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-10-27 11:05:33 +1100
commitd976ca870191e8677925ff4b76c48cae829ec5ae (patch)
treeaddd2b6439b625eb64b27a17cadf79c54cef8165 /compiler/rustc_macros
parent96993a9b5e971b3e5ecd5cd75bb79bfd62e18d5e (diff)
downloadrust-d976ca870191e8677925ff4b76c48cae829ec5ae.tar.gz
rust-d976ca870191e8677925ff4b76c48cae829ec5ae.zip
Use LLVM-C APIs for getting/setting visibility
Diffstat (limited to 'compiler/rustc_macros')
-rw-r--r--compiler/rustc_macros/src/try_from.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_macros/src/try_from.rs b/compiler/rustc_macros/src/try_from.rs
index fde7c8f6204..9338c1c2b33 100644
--- a/compiler/rustc_macros/src/try_from.rs
+++ b/compiler/rustc_macros/src/try_from.rs
@@ -34,6 +34,8 @@ pub(crate) fn try_from_u32(s: Structure<'_>) -> TokenStream {
         .iter()
         .map(|v| v.construct(|_, _| -> TokenStream { unreachable!() }))
         .collect::<Vec<_>>();
+    // FIXME(edition_2024): Fix the `keyword_idents_2024` lint to not trigger here?
+    #[allow(keyword_idents_2024)]
     s.gen_impl(quote! {
         // The surrounding code might have shadowed these identifiers.
         use ::core::convert::TryFrom;