Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7d47257

Browse files
committed
a
1 parent 98bd7a8 commit 7d47257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_hir/src/hir.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,6 +2869,7 @@ impl<'hir> AssocItemConstraintKind<'hir> {
28692869
}
28702870

28712871
#[derive(Debug, Clone, Copy, HashStable_Generic)]
2872+
#[repr(C)]
28722873
pub struct Ty<'hir> {
28732874
pub hir_id: HirId,
28742875
pub kind: TyKind<'hir>,
@@ -3148,6 +3149,7 @@ pub enum InferDelegationKind {
31483149

31493150
/// The various kinds of types recognized by the compiler.
31503151
#[derive(Debug, Clone, Copy, HashStable_Generic)]
3152+
#[repr(u8)]
31513153
pub enum TyKind<'hir> {
31523154
/// Actual type should be inherited from `DefId` signature
31533155
InferDelegation(DefId, InferDelegationKind),

0 commit comments

Comments
 (0)