about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-09-26 14:26:18 -0700
committerGitHub <noreply@github.com>2016-09-26 14:26:18 -0700
commit388c3f25f95c55add63d436a8e8bb207d003c63b (patch)
tree2db50fcc1b05a9017fc8284e0a632aa7f4ed25ea /src/rustllvm/RustWrapper.cpp
parent8ccfc695b56c102a2e7e95719b398bfa0a5e8af1 (diff)
parent159aa0b902b6939631ad7afbc77def5b7c77953c (diff)
downloadrust-388c3f25f95c55add63d436a8e8bb207d003c63b.tar.gz
rust-388c3f25f95c55add63d436a8e8bb207d003c63b.zip
Auto merge of #36661 - jneem:master, r=nrc
Change error message for intrinsic signature.

Makes it so the signature of the intrinsic in the user's code is
"found," while the signature that rustc knows about is "expected."

Before this patch, the code
```
extern "platform-intrinsic" {
    fn x86_mm_movemask_ps() -> i32;
}
```
would give the error
```
error[E0444]: platform-specific intrinsic has invalid number of arguments: found 1, expected 0
 --> test.rs:4:5
  |
4 |     fn x86_mm_movemask_ps() -> i32;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
```

After this patch, it says "found 0, expected 1".
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions