Skip to content

Commit a5915c4

Browse files
committed
refactor(rengine): ast: use a struct for Ty, not a type synonym
1 parent 5ae1e4d commit a5915c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-printer/src/ast.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ pub enum PrimitiveTy {
6464
pub struct Region;
6565

6666
/// A indirection for the representation of types.
67-
pub type Ty = Box<TyKind>;
67+
#[derive_group_for_ast]
68+
pub struct Ty(Box<TyKind>);
6869

6970
/// Describes any Rust type (e.g., `i32`, `Vec<T>`, `fn(i32) -> bool`).
7071
#[derive_group_for_ast]

0 commit comments

Comments
 (0)