Skip to content

Commit f45fd40

Browse files
---
yaml --- r: 235029 b: refs/heads/stable c: ed6940f h: refs/heads/master i: 235027: 28cb2db v: v3
1 parent 0e2065c commit f45fd40

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 20f22b7f0e29068414933dd6d41c6a5785d3fd75
32+
refs/heads/stable: ed6940fd384b1e42c3e3ad229e022af2e13b79c7
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/librustc_typeck/diagnostics.rs

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ You called an unknown intrinsic function. Erroneous code example:
10291029
#![feature(intrinsics)]
10301030
10311031
extern "rust-intrinsic" {
1032-
fn foo();
1032+
fn foo(); // error: unrecognized intrinsic function: `foo`
10331033
}
10341034
10351035
fn main() {
@@ -1047,7 +1047,7 @@ libcore/intrinsics.rs. Example:
10471047
#![feature(intrinsics)]
10481048
10491049
extern "rust-intrinsic" {
1050-
fn atomic_fence();
1050+
fn atomic_fence(); // ok!
10511051
}
10521052
10531053
fn main() {
@@ -1058,6 +1058,31 @@ fn main() {
10581058
```
10591059
"##,
10601060

1061+
E0094: r##"
1062+
You gave an invalid number of type parameters to an intrinsic function.
1063+
Erroneous code example:
1064+
1065+
```
1066+
#![feature(intrinsics)]
1067+
1068+
extern "rust-intrinsic" {
1069+
fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
1070+
// of type parameters
1071+
}
1072+
```
1073+
1074+
Please check you give the right number of lifetime parameters and/or the
1075+
function definition. Example:
1076+
1077+
```
1078+
#![feature(intrinsics)]
1079+
1080+
extern "rust-intrinsic" {
1081+
fn size_of<T>() -> usize; // ok!
1082+
}
1083+
```
1084+
"##,
1085+
10611086
E0106: r##"
10621087
This error indicates that a lifetime is missing from a type. If it is an error
10631088
inside a function signature, the problem may be with failing to adhere to the
@@ -1724,7 +1749,6 @@ register_diagnostics! {
17241749
E0086,
17251750
E0090,
17261751
E0092,
1727-
E0094,
17281752
E0101,
17291753
E0102,
17301754
E0103,

0 commit comments

Comments
 (0)