Skip to content

Commit b2beb67

Browse files
Rollup merge of #81835 - jesusprubio:improve-long-eplanation-e0546, r=GuillaumeGomez
Improve long explanation for E0546 Helps with #61137
2 parents 6c64882 + ac6c09a commit b2beb67

File tree

1 file changed

+9
-2
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+9
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0546.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A feature name is missing.
1+
The `feature` value is missing in a stability attribute.
22

33
Erroneous code example:
44

@@ -13,7 +13,7 @@ fn unstable_fn() {}
1313
fn stable_fn() {}
1414
```
1515

16-
To fix the issue you need to provide a feature name.
16+
To fix the issue you need to provide the `feature` field.
1717

1818
```
1919
#![feature(staged_api)]
@@ -25,3 +25,10 @@ fn unstable_fn() {}
2525
#[stable(feature = "stable_fn", since = "1.0.0")] // ok!
2626
fn stable_fn() {}
2727
```
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

0 commit comments

Comments
 (0)