Add listing of lints (eg via -W help) to rustdoc

This commit is contained in:
Alan Egerton 2021-04-06 02:09:43 +01:00
parent d322385321
commit 4d23c8e9a1
No known key found for this signature in database
GPG key ID: 68A65BCD9D289FFE
5 changed files with 43 additions and 4 deletions

View file

@ -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: