fn generate_lint_descriptor(sh: &Shell, buf: &mut String)
Expand description
Parses the output of rustdoc -Whelp
and prints Lint
and LintGroup
constants into buf
.
As of writing, the output of rustc -Whelp
(not rustdoc) has the following format:
Lint checks provided by rustc:
name default meaning
---- ------- -------
...
Lint groups provided by rustc:
name sub-lints
---- ---------
...
rustdoc -Whelp
(and any other custom rustc
driver) adds another two
tables after the rustc
ones, with a different title but the same format.