]> git.lizzy.rs Git - rust.git/commitdiff
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)
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".


Trivial merge