From 5c7a94459c97836b2cea66d1346ba854e0f46ebe Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 3 Apr 2019 22:20:18 +0200 Subject: [PATCH] Add documentation on the -Z flag on the command-line arguments section in the rustc book. --- src/doc/rustc/src/command-line-arguments.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index d7e789b5a11..18d7052c2c5 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -86,6 +86,12 @@ This flag will set which lints should be set to the [deny level](lints/levels.ht This flag will set which lints should be set to the [forbid level](lints/levels.html#forbid). +## `-Z`: set options for debugging rustc + +This flag lets you set options for debugging rustc. In order to set multiple options, the -Z flag +can be used multiple times. For example: `rustc -Z verbose -Z time`. Specifying options with -Z is +only available on nightly. To view all available options run: `rustc -Z help`. + ## `--cap-lints`: set the most restrictive lint level This flag lets you 'cap' lints, for more, [see here](lints/levels.html#capping-lints).