diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-30 10:35:46 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-30 19:21:22 +0200 |
| commit | 20f22b7f0e29068414933dd6d41c6a5785d3fd75 (patch) | |
| tree | fc0b8b1e25622cbeaca5ee8449e0063bd2a9d1ca | |
| parent | c158be082f07c2b2ed0a5f1db33627709396ac63 (diff) | |
Add E0093 error explanation
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 1e83c1b6900..57fbd52f71f 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1022,6 +1022,42 @@ type Foo<A> = Box<A>; // ok! ``` "##, +E0093: r##" +You called an unknown intrinsic function. Erroneous code example: + +``` +#![feature(intrinsics)] + +extern "rust-intrinsic" { + fn foo(); +} + +fn main() { + unsafe { + foo(); + } +} +``` + +Please check you didn't make a mistake in the function's name. All intrinsic +functions are defined in librustc_trans/trans/intrinsic.rs and in +libcore/intrinsics.rs. Example: + +``` +#![feature(intrinsics)] + +extern "rust-intrinsic" { + fn atomic_fence(); +} + +fn main() { + unsafe { + atomic_fence(); + } +} +``` +"##, + E0106: r##" This error indicates that a lifetime is missing from a type. If it is an error inside a function signature, the problem may be with failing to adhere to the @@ -1688,7 +1724,6 @@ register_diagnostics! { E0086, E0090, E0092, - E0093, E0094, E0101, E0102, |
