]> git.lizzy.rs Git - rust.git/commit
Auto merge of #36661 - jneem:master, r=nrc
authorbors <bors@rust-lang.org>
Mon, 26 Sep 2016 21:26:18 +0000 (14:26 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2016 21:26:18 +0000 (14:26 -0700)
commit388c3f25f95c55add63d436a8e8bb207d003c63b
tree2db50fcc1b05a9017fc8284e0a632aa7f4ed25ea
parent8ccfc695b56c102a2e7e95719b398bfa0a5e8af1
parent159aa0b902b6939631ad7afbc77def5b7c77953c
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".