Skip to content

Commit

Permalink
Small error code explanations improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 26, 2016
1 parent aeedf22 commit a9907a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/librustc_lint/types.rs
Expand Up @@ -56,7 +56,6 @@ let Wrapping(x) = x;
let y: usize = 1.wrapping_neg();
assert_eq!(x, y);
```
"##
}

Expand Down
6 changes: 4 additions & 2 deletions src/librustc_trans/diagnostics.rs
Expand Up @@ -23,8 +23,10 @@ extern "platform-intrinsic" {
fn simd_add<T>(a: T, b: T) -> T;
}
unsafe { simd_add(0, 1); }
// error: invalid monomorphization of `simd_add` intrinsic
fn main() {
unsafe { simd_add(0, 1); }
// error: invalid monomorphization of `simd_add` intrinsic
}
```
The generic type has to be a SIMD type. Example:
Expand Down

0 comments on commit a9907a1

Please sign in to comment.