File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,15 @@ always uses `"abort"`.
188188
189189Tests, benchmarks, build scripts, and proc macros ignore the ` panic ` setting.
190190The ` 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
193193Additionally, when using the ` abort ` strategy and building a test, all of the
194194dependencies 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
You can’t perform that action at this time.
0 commit comments