xtask::codegen::lints

Function generate_feature_descriptor

source
fn generate_feature_descriptor(buf: &mut String, src_dir: &Path)
Expand description

Parses the unstable book src_dir and prints a constant with the list of unstable features into buf.

It does this by looking for all .md files in the language-features and library-features directories, and using the file name as the feature name, and the file contents as the feature description.