diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-24 23:19:18 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-25 16:44:59 +0000 |
| commit | f8df298d74ad4a385ca0b14e65ae154a9b8fa5c5 (patch) | |
| tree | bf0f6bc685521a62d03fce16bfc9c81a2d604034 /compiler/rustc_ast/src/ast.rs | |
| parent | 2bf0c2df147e98ead4297ccc6a62b2f7f6c48c3e (diff) | |
| download | rust-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.rs | 2 |
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`. |
