File tree 1 file changed +9
-2
lines changed
compiler/rustc_error_codes/src/error_codes
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
- A feature name is missing.
1
+ The ` feature ` value is missing in a stability attribute .
2
2
3
3
Erroneous code example:
4
4
@@ -13,7 +13,7 @@ fn unstable_fn() {}
13
13
fn stable_fn() {}
14
14
```
15
15
16
- To fix the issue you need to provide a feature name .
16
+ To fix the issue you need to provide the ` feature ` field .
17
17
18
18
```
19
19
#![feature(staged_api)]
@@ -25,3 +25,10 @@ fn unstable_fn() {}
25
25
#[stable(feature = "stable_fn", since = "1.0.0")] // ok!
26
26
fn stable_fn() {}
27
27
```
28
+
29
+ See the [ How Rust is Made and “Nightly Rust”] [ how-rust-made-nightly ] appendix
30
+ of the Book and the [ Stability attributes] [ stability-attributes ] section of the
31
+ Rustc Dev Guide for more details.
32
+
33
+ [ how-rust-made-nightly ] : https://doc.rust-lang.org/book/appendix-07-nightly-rust.html
34
+ [ stability-attributes ] : https://rustc-dev-guide.rust-lang.org/stability.html
You can’t perform that action at this time.
0 commit comments