aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-05-05 14:21:21 -0700
committerPatrick Walton <[email protected]>2011-05-05 14:21:59 -0700
commit9a1f0977a227a14fa521f8e0efe5edcbf81eb597 (patch)
tree2ddfe7ab8d50a1249a569ed7add23b5ca72e3c79 /src/comp
parentBecause good hackers at least check to see if the code compiles. (diff)
downloadrust-9a1f0977a227a14fa521f8e0efe5edcbf81eb597.tar.xz
rust-9a1f0977a227a14fa521f8e0efe5edcbf81eb597.zip
rustc: Fix bug in equal_abi that was preventing Rust intrinsics from working
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/ty.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs
index 9e6b4489..afe28b3e 100644
--- a/src/comp/middle/ty.rs
+++ b/src/comp/middle/ty.rs
@@ -1228,6 +1228,12 @@ fn equal_type_structures(&sty a, &sty b) -> bool {
case (_) { ret false; }
}
}
+ case (ast.native_abi_rust_intrinsic) {
+ alt (b) {
+ case (ast.native_abi_rust_intrinsic) { ret true; }
+ case (_) { ret false; }
+ }
+ }
case (ast.native_abi_cdecl) {
alt (b) {
case (ast.native_abi_cdecl) { ret true; }