File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
src/librustc_error_codes/error_codes Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1- You tried to declare an undefined atomic operation function.
1+ An undefined atomic operation function was declared.
2+
23Erroneous code example:
34
45``` compile_fail,E0092
@@ -11,8 +12,8 @@ extern "rust-intrinsic" {
1112```
1213
1314Please check you didn't make a mistake in the function's name. All intrinsic
14- functions are defined in librustc_codegen_llvm/intrinsic.rs and in
15- libcore/intrinsics.rs in the Rust source code. Example:
15+ functions are defined in ` librustc_codegen_llvm/intrinsic.rs ` and in
16+ ` libcore/intrinsics.rs ` in the Rust source code. Example:
1617
1718```
1819#![feature(intrinsics)]
Original file line number Diff line number Diff line change 1- You declared an unknown intrinsic function. Erroneous code example:
1+ An unknown intrinsic function was declared.
2+
3+ Erroneous code example:
24
35``` compile_fail,E0093
46#![feature(intrinsics)]
@@ -15,8 +17,8 @@ fn main() {
1517```
1618
1719Please check you didn't make a mistake in the function's name. All intrinsic
18- functions are defined in librustc_codegen_llvm/intrinsic.rs and in
19- libcore/intrinsics.rs in the Rust source code. Example:
20+ functions are defined in ` librustc_codegen_llvm/intrinsic.rs ` and in
21+ ` libcore/intrinsics.rs ` in the Rust source code. Example:
2022
2123```
2224#![feature(intrinsics)]
Original file line number Diff line number Diff line change 1- You gave an invalid number of type parameters to an intrinsic function.
1+ An invalid number of type parameters was given to an intrinsic function.
2+
23Erroneous code example:
34
45``` compile_fail,E0094
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ This error indicates that a lifetime is missing from a type. If it is an error
22inside a function signature, the problem may be with failing to adhere to the
33lifetime elision rules (see below).
44
5- Here are some simple examples of where you'll run into this error :
5+ Erroneous code examples:
66
77``` compile_fail,E0106
88struct Foo1 { x: &bool }
@@ -27,7 +27,7 @@ function signatures which allows you to leave out lifetimes in certain cases.
2727For more background on lifetime elision see [ the book] [ book-le ] .
2828
2929The lifetime elision rules require that any function signature with an elided
30- output lifetime must either have
30+ output lifetime must either have:
3131
3232 - exactly one input lifetime
3333 - or, multiple input lifetimes, but the function must also be a method with a
You can’t perform that action at this time.
0 commit comments