Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN

Fix doc for rustc "-g" flag

The rustc `-g` CLI flag was miss documented to be a synonym of `-C debug-level=2` and not `-C debuglevel=2`. Also add links to the codegen docs for each synonym.

I am unsure of this will conflict with work on #52938
This commit is contained in:
kennytm 2019-02-20 01:13:32 +08:00
commit 717aa46178
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -42,11 +42,11 @@ This flag prints out various information about the compiler.
## `-g`: include debug information ## `-g`: include debug information
A synonym for `-C debug-level=2`. A synonym for `-C debuginfo=2`, for more see [here](codegen-options/index.html#debuginfo).
## `-O`: optimize your code ## `-O`: optimize your code
A synonym for `-C opt-level=2`. A synonym for `-C opt-level=2`, for more see [here](codegen-options/index.html#opt-level).
## `-o`: filename of the output ## `-o`: filename of the output