Skip to content

Commit 6e905ad

Browse files
---
yaml --- r: 217299 b: refs/heads/master c: 20f22b7 h: refs/heads/master i: 217297: 3e20343 217295: 0e5d1ef v: v3
1 parent 9ba239e commit 6e905ad

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c158be082f07c2b2ed0a5f1db33627709396ac63
2+
refs/heads/master: 20f22b7f0e29068414933dd6d41c6a5785d3fd75
33
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc_typeck/diagnostics.rs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,42 @@ type Foo<A> = Box<A>; // ok!
10221022
```
10231023
"##,
10241024

1025+
E0093: r##"
1026+
You called an unknown intrinsic function. Erroneous code example:
1027+
1028+
```
1029+
#![feature(intrinsics)]
1030+
1031+
extern "rust-intrinsic" {
1032+
fn foo();
1033+
}
1034+
1035+
fn main() {
1036+
unsafe {
1037+
foo();
1038+
}
1039+
}
1040+
```
1041+
1042+
Please check you didn't make a mistake in the function's name. All intrinsic
1043+
functions are defined in librustc_trans/trans/intrinsic.rs and in
1044+
libcore/intrinsics.rs. Example:
1045+
1046+
```
1047+
#![feature(intrinsics)]
1048+
1049+
extern "rust-intrinsic" {
1050+
fn atomic_fence();
1051+
}
1052+
1053+
fn main() {
1054+
unsafe {
1055+
atomic_fence();
1056+
}
1057+
}
1058+
```
1059+
"##,
1060+
10251061
E0106: r##"
10261062
This error indicates that a lifetime is missing from a type. If it is an error
10271063
inside a function signature, the problem may be with failing to adhere to the
@@ -1688,7 +1724,6 @@ register_diagnostics! {
16881724
E0086,
16891725
E0090,
16901726
E0092,
1691-
E0093,
16921727
E0094,
16931728
E0101,
16941729
E0102,

0 commit comments

Comments
 (0)