File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4903,13 +4903,12 @@ test "errdefer unwinding" {
4903
4903
{#header_close#}
4904
4904
{#header_open|unreachable#}
4905
4905
<p>
4906
- In {#syntax#} Debug{#endsyntax# } and {#syntax#} ReleaseSafe{#endsyntax# } mode, and when using <kbd>zig test</kbd>,
4906
+ In {#link| Debug# } and {#link| ReleaseSafe# } mode
4907
4907
{#syntax#}unreachable{#endsyntax#} emits a call to {#syntax#}panic{#endsyntax#} with the message <code>reached unreachable code</code>.
4908
4908
</p>
4909
4909
<p>
4910
- In {#syntax#}ReleaseFast{#endsyntax#} mode, the optimizer uses the assumption that {#syntax#}unreachable{#endsyntax#} code
4911
- will never be hit to perform optimizations. However, <kbd>zig test</kbd> even in {#syntax#}ReleaseFast{#endsyntax#} mode
4912
- still emits {#syntax#}unreachable{#endsyntax#} as calls to {#syntax#}panic{#endsyntax#}.
4910
+ In {#link|ReleaseFast#} and {#link|ReleaseSmall#} mode, the optimizer uses the assumption that {#syntax#}unreachable{#endsyntax#} code
4911
+ will never be hit to perform optimizations.
4913
4912
</p>
4914
4913
{#header_open|Basics#}
4915
4914
{#code_begin|test|test_unreachable#}
You can’t perform that action at this time.
0 commit comments