]> git.lizzy.rs Git - rust.git/commitdiff
Small error codes explanation cleanup (E0092, E0093 and E0094)
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 30 Nov 2019 12:28:53 +0000 (13:28 +0100)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sat, 30 Nov 2019 12:43:50 +0000 (13:43 +0100)
src/librustc_error_codes/error_codes/E0092.md
src/librustc_error_codes/error_codes/E0093.md
src/librustc_error_codes/error_codes/E0094.md
src/librustc_error_codes/error_codes/E0106.md

index 2750a7d45b48e56a45646764288b295c1b1fbadb..e289534bf7abd777281cf5a1af3d75aeb0db043f 100644 (file)
@@ -1,4 +1,5 @@
-You tried to declare an undefined atomic operation function.
+An undefined atomic operation function was declared.
+
 Erroneous code example:
 
 ```compile_fail,E0092
@@ -11,8 +12,8 @@ extern "rust-intrinsic" {
 ```
 
 Please check you didn't make a mistake in the function's name. All intrinsic
-functions are defined in librustc_codegen_llvm/intrinsic.rs and in
-libcore/intrinsics.rs in the Rust source code. Example:
+functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
+`libcore/intrinsics.rs` in the Rust source code. Example:
 
 ```
 #![feature(intrinsics)]
index 9633f794d8bb7457348b4d4794bed7eb14b28825..8e7de1a9d37b3101e49fe5bafc24eb4e16d693c6 100644 (file)
@@ -1,4 +1,6 @@
-You declared an unknown intrinsic function. Erroneous code example:
+An unknown intrinsic function was declared.
+
+Erroneous code example:
 
 ```compile_fail,E0093
 #![feature(intrinsics)]
@@ -15,8 +17,8 @@ fn main() {
 ```
 
 Please check you didn't make a mistake in the function's name. All intrinsic
-functions are defined in librustc_codegen_llvm/intrinsic.rs and in
-libcore/intrinsics.rs in the Rust source code. Example:
+functions are defined in `librustc_codegen_llvm/intrinsic.rs` and in
+`libcore/intrinsics.rs` in the Rust source code. Example:
 
 ```
 #![feature(intrinsics)]
index 4d27f616d2d84250bc24f0d26355866ba36336a5..42baa65bf9faf77782a73dde922f048c23183769 100644 (file)
@@ -1,4 +1,5 @@
-You gave an invalid number of type parameters to an intrinsic function.
+An invalid number of type parameters was given to an intrinsic function.
+
 Erroneous code example:
 
 ```compile_fail,E0094
index 8a49c1f79e475e95b79ebe5c56f1234821555a6d..60ca1ddc2830c3958b07f868a01dcbc1a94356dc 100644 (file)
@@ -2,7 +2,7 @@ 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
 lifetime elision rules (see below).
 
-Here are some simple examples of where you'll run into this error:
+Erroneous code examples:
 
 ```compile_fail,E0106
 struct Foo1 { x: &bool }
@@ -27,7 +27,7 @@ function signatures which allows you to leave out lifetimes in certain cases.
 For more background on lifetime elision see [the book][book-le].
 
 The lifetime elision rules require that any function signature with an elided
-output lifetime must either have
+output lifetime must either have:
 
  - exactly one input lifetime
  - or, multiple input lifetimes, but the function must also be a method with a