Skip to content

Commit 9a1f097

Browse files
committed
rustc: Fix bug in equal_abi that was preventing Rust intrinsics from working
1 parent 2131f2b commit 9a1f097

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/middle/ty.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,12 @@ fn equal_type_structures(&sty a, &sty b) -> bool {
12281228
case (_) { ret false; }
12291229
}
12301230
}
1231+
case (ast.native_abi_rust_intrinsic) {
1232+
alt (b) {
1233+
case (ast.native_abi_rust_intrinsic) { ret true; }
1234+
case (_) { ret false; }
1235+
}
1236+
}
12311237
case (ast.native_abi_cdecl) {
12321238
alt (b) {
12331239
case (ast.native_abi_cdecl) { ret true; }

0 commit comments

Comments
 (0)