Skip to content

Commit 5aa4e3c

Browse files
Add TyKind::TyAlias support in rustc_mir_build
1 parent db39bcd commit 5aa4e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'tcx> ConstToPat<'tcx> {
139139
ty::RawPtr(..) => {
140140
"raw pointers cannot be used in patterns".to_string()
141141
}
142-
traits::NonStructuralMatchTyKind::TyAlias => {
142+
ty::TyAlias(..) => {
143143
bug!("use of a value of a type alias inside a pattern")
144144
}
145145
_ => {

0 commit comments

Comments
 (0)