diff options
| author | Patrick Walton <[email protected]> | 2011-05-05 14:21:21 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-05 14:21:59 -0700 |
| commit | 9a1f0977a227a14fa521f8e0efe5edcbf81eb597 (patch) | |
| tree | 2ddfe7ab8d50a1249a569ed7add23b5ca72e3c79 /src | |
| parent | Because good hackers at least check to see if the code compiles. (diff) | |
| download | rust-9a1f0977a227a14fa521f8e0efe5edcbf81eb597.tar.xz rust-9a1f0977a227a14fa521f8e0efe5edcbf81eb597.zip | |
rustc: Fix bug in equal_abi that was preventing Rust intrinsics from working
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp/middle/ty.rs | 6 |
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; } |