about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-18 23:23:10 +0100
committerGitHub <noreply@github.com>2022-02-18 23:23:10 +0100
commit576afec73a15e918ab6d1e85ba7d8dd6fb1626d3 (patch)
treefd3b716d65ff9c13141b7de328cc53eeee2b824e /compiler/rustc_span/src
parent1e2f63de0a5e9a32d97d355f6351665e77455be2 (diff)
parent3a73ca587bb8a8fb52d6045fbe31d50d5a56ff19 (diff)
downloadrust-576afec73a15e918ab6d1e85ba7d8dd6fb1626d3.tar.gz
rust-576afec73a15e918ab6d1e85ba7d8dd6fb1626d3.zip
Rollup merge of #93915 - Urgau:rfc-3013, r=petrochenkov
Implement --check-cfg option (RFC 3013), take 2

This pull-request implement RFC 3013: Checking conditional compilation at compile time (https://github.com/rust-lang/rfcs/pull/3013) and is based on the previous attempt https://github.com/rust-lang/rust/pull/89346 by `@mwkmwkmwk` that was closed due to inactivity.

I have address all the review comments from the previous attempt and added some more tests.

cc https://github.com/rust-lang/rust/issues/82450
r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 5220c884644..c746255e95e 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -911,6 +911,7 @@ symbols! {
         naked,
         naked_functions,
         name,
+        names,
         native_link_modifiers,
         native_link_modifiers_as_needed,
         native_link_modifiers_bundle,
@@ -1482,6 +1483,7 @@ symbols! {
         va_list,
         va_start,
         val,
+        values,
         var,
         variant_count,
         vec,