about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-03-25 16:19:02 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-03-25 19:04:30 +0100
commit6eab9802c9d43cc7b2340fd93c49881850cd3b20 (patch)
treef198cafa068826e7c4c4bf47ee9a58ca110188d8
parentec7efa75f90884f1c9c242d5654c3bb854555271 (diff)
downloadrust-6eab9802c9d43cc7b2340fd93c49881850cd3b20.tar.gz
rust-6eab9802c9d43cc7b2340fd93c49881850cd3b20.zip
Add note about feature gates
-rw-r--r--library/proc_macro/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/proc_macro/src/lib.rs b/library/proc_macro/src/lib.rs
index 433fb1001dd..762eafc8099 100644
--- a/library/proc_macro/src/lib.rs
+++ b/library/proc_macro/src/lib.rs
@@ -17,6 +17,9 @@
     test(no_crate_inject, attr(deny(warnings))),
     test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
 )]
+// This library is copied into rust-analyzer to allow loading rustc compiled proc macros.
+// Please avoid unstable features where possible to minimize the amount of changes necessary
+// to make it compile with rust-analyzer on stable.
 #![feature(rustc_allow_const_fn_unstable)]
 #![feature(nll)]
 #![feature(staged_api)]