Rollup merge of #57132 - daxpedda:master, r=steveklabnik
Document that `-C opt-level=0` implies `-C debug-assertions`. I couldn't find it stated anywhere else (https://doc.rust-lang.org/nightly/rustc/codegen-options/index.html#opt-level). It was a problem before here: https://github.com/rust-lang/rust/issues/39449, it got lost in the migration to the new documentation I assume. On a sidenote: I think that `-C opt-level=0` having a sideeffect on another flag should be changed. Having compiler flags affecting others doesn't make much sense to me, they are used to fine tune anyway. In any case, this plays no role in this PR.
This commit is contained in:
commit
04a2cbd1c8
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ This flag lets you control debug information:
|
||||||
|
|
||||||
This flag lets you control the optimization level.
|
This flag lets you control the optimization level.
|
||||||
|
|
||||||
* `0`: no optimizations
|
* `0`: no optimizations, also turn on `cfg(debug_assertions)`.
|
||||||
* `1`: basic optimizations
|
* `1`: basic optimizations
|
||||||
* `2`: some optimizations
|
* `2`: some optimizations
|
||||||
* `3`: all optimizations
|
* `3`: all optimizations
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue