diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 1e83c1b6900a4d0631be20a81212a58ec6ad3677..57fbd52f71f4e3601d41c1a8b49ff934cc56ae0c 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1022,6 +1022,42 @@ fn main() { ``` "##, +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 @@ impl Baz for Bar { } // Note: This is OK E0086, E0090, E0092, - E0093, E0094, E0101, E0102,