Skip to content

Commit ce51a91

Browse files
committed
doc(profiles): panic can be applied when using a custom harness
1 parent 2c9bd80 commit ce51a91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/doc/src/reference/profiles.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,15 @@ always uses `"abort"`.
188188

189189
Tests, benchmarks, build scripts, and proc macros ignore the `panic` setting.
190190
The `rustc` test harness currently requires `unwind` behavior. See the
191-
[`panic-abort-tests`] unstable flag which enables `abort` behavior.
191+
[`panic-abort-tests`] unstable flag which enables `abort` behavior.
192192

193193
Additionally, when using the `abort` strategy and building a test, all of the
194194
dependencies will also be forced to build with the `unwind` strategy.
195195

196+
One exception is that when a test or benchmark target is driven by a custom harness,
197+
panic setting will be applied since the custom harness may not have the same limitation
198+
as the `rustc` test harness requires.
199+
196200
[`-C panic` flag]: ../../rustc/codegen-options/index.html#panic
197201
[`panic-abort-tests`]: unstable.md#panic-abort-tests
198202

0 commit comments

Comments
 (0)