Skip to content

Commit b85bee8

Browse files
committed
Link UnstableOptions docs
1 parent f32afee commit b85bee8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/implementing-new-features.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ The below steps needs to be followed in order to implement a new unstable featur
228228
[tracking issue]: #tracking-issues
229229
[add-feature-gate]: ./feature-gates.md#adding-a-feature-gate
230230
[guidance for compiler flags]: https://forge.rust-lang.org/compiler/proposals-and-stabilization.html?highlight=unstable%20flag#compiler-flags
231+
[`UnstableOptions`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/options/struct.UnstableOptions.html
231232

232233
## Adding unstable compiler flags
233234

@@ -242,7 +243,7 @@ ecosystem use, may need additional sign-off beyond an r+ on the implementation P
242243

243244
When adding a new `-Z` flag:
244245

245-
1. Add the option to `UnstableOptions` in
246+
1. Add the option to [`UnstableOptions`] in
246247
`compiler/rustc_session/src/options.rs`.
247248
The option name is written as snake_case in the struct and is exposed as
248249
kebab-case on the command line.

0 commit comments

Comments
 (0)