Skip to content

Commit

Permalink
Auto merge of #4650 - main--:patch-1, r=matklad
Browse files Browse the repository at this point in the history
Document that cargo test --release uses profile.bench

It certainly makes sense but it's still surprising behavior when the docs clearly state `cargo bench` = `profile.bench`, `cargo test` = `profile.test`. Had to dive into the code to figure this out.
  • Loading branch information
bors committed Oct 26, 2017
2 parents f6ef634 + 4b8249f commit e5562dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/doc/book/src/reference/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ debug-assertions = true
codegen-units = 1
panic = 'unwind'

# The benchmarking profile, used for `cargo bench`.
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
[profile.bench]
opt-level = 3
debug = false
Expand Down
2 changes: 1 addition & 1 deletion src/doc/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ debug-assertions = true
codegen-units = 1
panic = 'unwind'

# The benchmarking profile, used for `cargo bench`.
# The benchmarking profile, used for `cargo bench` and `cargo test --release`.
[profile.bench]
opt-level = 3
debug = false
Expand Down

0 comments on commit e5562dd

Please sign in to comment.