Skip to content

Commit b2ed58e

Browse files
committed
docs(profile): panic behavior can be specified for custom harness
1 parent c592bf7 commit b2ed58e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/src/reference/profiles.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ The `rustc` test harness currently requires `unwind` behavior. See the
208208
Additionally, when using the `abort` strategy and building a test, all of the
209209
dependencies will also be forced to build with the `unwind` strategy.
210210

211+
One exception is that when a test or benchmark target is driven by a custom
212+
harness, panic setting will be applied since the custom harness may not have
213+
the same limitation as the `rustc` test harness requires.
214+
211215
[`-C panic` flag]: ../../rustc/codegen-options/index.html#panic
212216
[`panic-abort-tests`]: unstable.md#panic-abort-tests
213217

0 commit comments

Comments
 (0)