Skip to content

Commit 5c7a944

Browse files
author
Christian
committed
Add documentation on the -Z flag on the command-line arguments section in the rustc book.
1 parent f8673e0 commit 5c7a944

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/rustc/src/command-line-arguments.md

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ This flag will set which lints should be set to the [deny level](lints/levels.ht
8686

8787
This flag will set which lints should be set to the [forbid level](lints/levels.html#forbid).
8888

89+
## `-Z`: set options for debugging rustc
90+
91+
This flag lets you set options for debugging rustc. In order to set multiple options, the -Z flag
92+
can be used multiple times. For example: `rustc -Z verbose -Z time`. Specifying options with -Z is
93+
only available on nightly. To view all available options run: `rustc -Z help`.
94+
8995
## `--cap-lints`: set the most restrictive lint level
9096

9197
This flag lets you 'cap' lints, for more, [see here](lints/levels.html#capping-lints).

0 commit comments

Comments
 (0)