Rollup merge of #55111 - Havvy:rustc-book-cfg-examples, r=GuillaumeGomez

[Rustc Book] Explain --cfg's arguments

I removed this from the reference since it's rustc specific, and noticed it wasn't well documented on the page that should document it well. It does seem to go against the grain of one line per command line flag though.
This commit is contained in:
kennytm 2018-10-18 12:56:07 +08:00
commit 1c090061e9
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C

View File

@ -10,6 +10,11 @@ This flag will print out help information for `rustc`.
This flag can turn on or off various `#[cfg]` settings.
The value can either be a single identifier or two identifiers separated by `=`.
For examples, `--cfg 'verbose'` or `--cfg 'feature="serde"'`. These correspond
to `#[cfg(verbose)]` and `#[cfg(feature = "serde")]` respectively.
## `-L`: add a directory to the library search path
When looking for external crates, a directory passed to this flag will be searched.