File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
branches/tmp/src/librustc_typeck Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: 2ad26e850ed5dfedda8c96d7315aee50145ceedd
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 20f22b7f0e29068414933dd6d41c6a5785d3fd75
28
+ refs/heads/tmp: ed6940fd384b1e42c3e3ad229e022af2e13b79c7
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
Original file line number Diff line number Diff line change @@ -1029,7 +1029,7 @@ You called an unknown intrinsic function. Erroneous code example:
1029
1029
#![feature(intrinsics)]
1030
1030
1031
1031
extern "rust-intrinsic" {
1032
- fn foo();
1032
+ fn foo(); // error: unrecognized intrinsic function: `foo`
1033
1033
}
1034
1034
1035
1035
fn main() {
@@ -1047,7 +1047,7 @@ libcore/intrinsics.rs. Example:
1047
1047
#![feature(intrinsics)]
1048
1048
1049
1049
extern "rust-intrinsic" {
1050
- fn atomic_fence();
1050
+ fn atomic_fence(); // ok!
1051
1051
}
1052
1052
1053
1053
fn main() {
@@ -1058,6 +1058,31 @@ fn main() {
1058
1058
```
1059
1059
"## ,
1060
1060
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
+
1061
1086
E0106 : r##"
1062
1087
This error indicates that a lifetime is missing from a type. If it is an error
1063
1088
inside a function signature, the problem may be with failing to adhere to the
@@ -1724,7 +1749,6 @@ register_diagnostics! {
1724
1749
E0086 ,
1725
1750
E0090 ,
1726
1751
E0092 ,
1727
- E0094 ,
1728
1752
E0101 ,
1729
1753
E0102 ,
1730
1754
E0103 ,
You can’t perform that action at this time.
0 commit comments