diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-30 10:58:52 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-06-30 19:21:23 +0200 |
| commit | 758ea34146f4651cb78e2167de3c335007a8f26d (patch) | |
| tree | 0847f063e18e01d0307c0dd6a99bf45428221e4d | |
| parent | 0ba2db5fde29bfac76a69cff819cb8388be90392 (diff) | |
| download | rust-758ea34146f4651cb78e2167de3c335007a8f26d.tar.gz rust-758ea34146f4651cb78e2167de3c335007a8f26d.zip | |
Add E0092 error explanation
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index e81acc497b1..49f58d0d9e9 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1022,6 +1022,32 @@ type Foo<A> = Box<A>; // ok! ``` "##, +E0092: r##" +You tried to call an undefined atomic operation function. +Erroneous code example: + +``` +#![feature(intrinsics)] + +extern "rust-intrinsic" { + fn atomic_foo(); // error: unrecognized atomic operation + // function +} +``` + +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(); // ok! +} +``` +"##, + E0093: r##" You called an unknown intrinsic function. Erroneous code example: @@ -1771,7 +1797,6 @@ register_diagnostics! { E0085, E0086, E0090, - E0092, E0101, E0102, E0103, |
