diff options
| author | Alan Egerton <eggyal@gmail.com> | 2021-04-06 02:09:43 +0100 |
|---|---|---|
| committer | Alan Egerton <eggyal@gmail.com> | 2021-04-06 09:54:56 +0100 |
| commit | 4d23c8e9a162a91c4e25f75285353be938ea1f25 (patch) | |
| tree | 20b7df9c30c9308015efa7de4609734032209ed2 /compiler/rustc_driver | |
| parent | d32238532138485c80db4f2cd596372bce214e00 (diff) | |
| download | rust-4d23c8e9a162a91c4e25f75285353be938ea1f25.tar.gz rust-4d23c8e9a162a91c4e25f75285353be938ea1f25.zip | |
Add listing of lints (eg via -W help) to rustdoc
Diffstat (limited to 'compiler/rustc_driver')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index c8891734cce..8d6cb420bf7 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -845,7 +845,8 @@ the command line flag directly. ); } -fn describe_lints(sess: &Session, lint_store: &LintStore, loaded_plugins: bool) { +/// Write to stdout lint command options, together with a list of all available lints +pub fn describe_lints(sess: &Session, lint_store: &LintStore, loaded_plugins: bool) { println!( " Available lint options: |
