1
Fork 0

Add nested bool to DefKind::Static.

Will be used in the next commit
This commit is contained in:
Oli Scherer 2024-02-23 23:29:09 +00:00
parent 9816915954
commit 0b4cbee660
10 changed files with 19 additions and 13 deletions

View file

@ -78,6 +78,8 @@ pub enum DefKind {
Static {
/// Whether it's a `static mut` or just a `static`.
mt: ast::Mutability,
/// Whether it's an anonymous static generated for nested allocations.
nested: bool,
},
/// Refers to the struct or enum variant's constructor.
///