about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/ast.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-03-24 23:19:18 +0000
committerMichael Goulet <michael@errs.io>2025-03-25 16:44:59 +0000
commitf8df298d74ad4a385ca0b14e65ae154a9b8fa5c5 (patch)
treebf0f6bc685521a62d03fce16bfc9c81a2d604034 /compiler/rustc_ast/src/ast.rs
parent2bf0c2df147e98ead4297ccc6a62b2f7f6c48c3e (diff)
downloadrust-f8df298d74ad4a385ca0b14e65ae154a9b8fa5c5.tar.gz
rust-f8df298d74ad4a385ca0b14e65ae154a9b8fa5c5.zip
Allow defining opaques in statics and consts
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 5b7545b3396..fd27be21326 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -3535,6 +3535,7 @@ pub struct StaticItem {
     pub safety: Safety,
     pub mutability: Mutability,
     pub expr: Option<P<Expr>>,
+    pub define_opaque: Option<ThinVec<(NodeId, Path)>>,
 }
 
 #[derive(Clone, Encodable, Decodable, Debug)]
@@ -3543,6 +3544,7 @@ pub struct ConstItem {
     pub generics: Generics,
     pub ty: P<Ty>,
     pub expr: Option<P<Expr>>,
+    pub define_opaque: Option<ThinVec<(NodeId, Path)>>,
 }
 
 // Adding a new variant? Please update `test_item` in `tests/ui/macros/stringify.rs`.