summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-03-22 18:42:01 +0100
committerRalf Jung <post@ralfj.de>2025-03-25 08:22:35 +0100
commit61e24e630d5eea7bbff63e46051de509ceb46c33 (patch)
treee3d19777eac263d84602642aab95b58446f4dbd5 /library
parent072ccce553dd83ebfdf0aaf99eb24f65133c368b (diff)
downloadrust-61e24e630d5eea7bbff63e46051de509ceb46c33.tar.gz
rust-61e24e630d5eea7bbff63e46051de509ceb46c33.zip
allow wasm_c_abi in proc_macro bridge
Diffstat (limited to 'library')
-rw-r--r--library/proc_macro/src/bridge/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/proc_macro/src/bridge/mod.rs b/library/proc_macro/src/bridge/mod.rs
index 03c3e697cfe..52cc8fba043 100644
--- a/library/proc_macro/src/bridge/mod.rs
+++ b/library/proc_macro/src/bridge/mod.rs
@@ -7,6 +7,10 @@
 //! Rust ABIs (e.g., stage0/bin/rustc vs stage1/bin/rustc during bootstrap).
 
 #![deny(unsafe_code)]
+// proc_macros anyway don't work on wasm hosts so while both sides of this bridge can
+// be built with different versions of rustc, the wasm ABI changes don't really matter.
+#![cfg_attr(bootstrap, allow(unknown_lints))]
+#![allow(wasm_c_abi)]
 
 use std::hash::Hash;
 use std::ops::{Bound, Range};