about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/ast.rs
diff options
context:
space:
mode:
authorFrank King <frankking1729@gmail.com>2025-02-05 18:58:29 +0800
committerFrank King <frankking1729@gmail.com>2025-03-01 22:02:46 +0800
commit42f51d4fd42c95e0c51c3f8742d63db0548cd5a0 (patch)
tree754318d4e5ccbdb944dc38741039989a48d124e4 /compiler/rustc_ast/src/ast.rs
parent30508faeb3248d399079513b6e0107af30a43948 (diff)
downloadrust-42f51d4fd42c95e0c51c3f8742d63db0548cd5a0.tar.gz
rust-42f51d4fd42c95e0c51c3f8742d63db0548cd5a0.zip
Implment `#[cfg]` and `#[cfg_attr]` in `where` clauses
Diffstat (limited to 'compiler/rustc_ast/src/ast.rs')
-rw-r--r--compiler/rustc_ast/src/ast.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 5c44fda2262..a8d30949ea8 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -417,9 +417,11 @@ impl WhereClause {
 /// A single predicate in a where-clause.
 #[derive(Clone, Encodable, Decodable, Debug)]
 pub struct WherePredicate {
+    pub attrs: AttrVec,
     pub kind: WherePredicateKind,
     pub id: NodeId,
     pub span: Span,
+    pub is_placeholder: bool,
 }
 
 /// Predicate kind in where-clause.