Skip to content

Commit 284f0d3

Browse files
authored
Document that -C opt-level=0 implies -C debug-assertions.
1 parent 14b9665 commit 284f0d3

File tree

1 file changed

+1
-1
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+1
-1
lines changed

src/doc/rustc/src/codegen-options/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ This flag lets you control debug information:
187187

188188
This flag lets you control the optimization level.
189189

190-
* `0`: no optimizations
190+
* `0`: no optimizations, also turn on `cfg(debug_assertions)`.
191191
* `1`: basic optimizations
192192
* `2`: some optimizations
193193
* `3`: all optimizations

0 commit comments

Comments
 (0)