about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordaxpedda <1645124+daxpedda@users.noreply.github.com>2018-12-26 18:19:46 +0100
committerGitHub <noreply@github.com>2018-12-26 18:19:46 +0100
commit284f0d364588821ba7e2ea0c42845fcbbf722290 (patch)
tree8681280f2877a520f271ad1c4795496e86d93895 /src
parent14b96659e4e9b2f31431df48f47c219957e2666a (diff)
downloadrust-284f0d364588821ba7e2ea0c42845fcbbf722290.tar.gz
rust-284f0d364588821ba7e2ea0c42845fcbbf722290.zip
Document that `-C opt-level=0` implies `-C debug-assertions`.
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc/src/codegen-options/index.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index 94f21042c8f..a616409d9a4 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -187,7 +187,7 @@ This flag lets you control debug information:
 
 This flag lets you control the optimization level.
 
-* `0`: no optimizations
+* `0`: no optimizations, also turn on `cfg(debug_assertions)`.
 * `1`: basic optimizations
 * `2`: some optimizations
 * `3`: all optimizations