about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-03-03 10:40:56 +0100
committerGitHub <noreply@github.com>2025-03-03 10:40:56 +0100
commit2344a34241e2cf08e6285ddf7755b70bfa306e5a (patch)
tree5e72f03cef42d18af3990ac2e88a906d730d70c2 /compiler/rustc_span/src
parent81d8edc2000aa38b08ad09fce22d90f1990b6459 (diff)
parent42f51d4fd42c95e0c51c3f8742d63db0548cd5a0 (diff)
downloadrust-2344a34241e2cf08e6285ddf7755b70bfa306e5a.tar.gz
rust-2344a34241e2cf08e6285ddf7755b70bfa306e5a.zip
Rollup merge of #132388 - frank-king:feature/where-cfg, r=petrochenkov
Implement `#[cfg]` in `where` clauses

This PR implements #115590, which supports `#[cfg]` attributes in `where` clauses.

The biggest change is, that it adds `AttrsVec` and  `NodeId` to the `ast::WherePredicate` and `HirId` to the `hir::WherePredicate`.
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 2a709b07255..3524709eebc 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -2234,6 +2234,7 @@ symbols! {
         wasm_abi,
         wasm_import_module,
         wasm_target_feature,
+        where_clause_attrs,
         while_let,
         windows,
         windows_subsystem,