about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2023-12-25 11:08:25 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2024-01-03 11:36:05 +0200
commita8f2484733abdaf6af523d0193181435a3d987c2 (patch)
treede10c437346f4cae9a1716f9bc9e596427c93a16
parentf0108b9d5e63283fb9c0555f47bbc97c1f8b13a8 (diff)
downloadrust-a8f2484733abdaf6af523d0193181435a3d987c2.tar.gz
rust-a8f2484733abdaf6af523d0193181435a3d987c2.zip
Allow unexpected_cfgs in proc-macro-test imp
-rw-r--r--src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs
index 03241b16be6..b8aad4acefc 100644
--- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs
+++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/imp/src/lib.rs
@@ -1,5 +1,7 @@
 //! Exports a few trivial procedural macros for testing.
 
+#![allow(unexpected_cfgs)]
+#![cfg(feature = "sysroot-abi")]
 #![cfg(any(feature = "sysroot-abi", rust_analyzer))]
 #![warn(rust_2018_idioms, unused_lifetimes)]
 #![feature(proc_macro_span, proc_macro_def_site)]