File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -1022,6 +1022,32 @@ type Foo<A> = Box<A>; // ok!
1022
1022
```
1023
1023
"## ,
1024
1024
1025
+ E0092 : r##"
1026
+ You tried to call an undefined atomic operation function.
1027
+ Erroneous code example:
1028
+
1029
+ ```
1030
+ #![feature(intrinsics)]
1031
+
1032
+ extern "rust-intrinsic" {
1033
+ fn atomic_foo(); // error: unrecognized atomic operation
1034
+ // function
1035
+ }
1036
+ ```
1037
+
1038
+ Please check you didn't make a mistake in the function's name. All intrinsic
1039
+ functions are defined in librustc_trans/trans/intrinsic.rs and in
1040
+ libcore/intrinsics.rs. Example:
1041
+
1042
+ ```
1043
+ #![feature(intrinsics)]
1044
+
1045
+ extern "rust-intrinsic" {
1046
+ fn atomic_fence(); // ok!
1047
+ }
1048
+ ```
1049
+ "## ,
1050
+
1025
1051
E0093 : r##"
1026
1052
You called an unknown intrinsic function. Erroneous code example:
1027
1053
@@ -1771,7 +1797,6 @@ register_diagnostics! {
1771
1797
E0085 ,
1772
1798
E0086 ,
1773
1799
E0090 ,
1774
- E0092 ,
1775
1800
E0101 ,
1776
1801
E0102 ,
1777
1802
E0103 ,
You can’t perform that action at this time.
0 commit comments