Skip to content

Commit 30b9f6d

Browse files
LokathorRalfJung
andauthored
Update text/0000-cargo-check-lang-policy.md
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 507f7cb commit 30b9f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-cargo-check-lang-policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Monomorphization is expensive: instead of having to check each function only onc
3333
Given this performance cost and the fact that errors during monomorphization are fairly rare, `cargo check` favors speed over completeness.
3434

3535
Any example where the optimization level can affect if a program passes `cargo check` and/or `cargo build` is a bug. There are no situations where a change in optimization level is intended to affect if a `check` or `build` is successful.
36-
In particular, it is not okay to skip checks in dead code if (a) the optimization level can affect which code is considered dead and (b) the checks might lead to an error that causes the check/build not to pass.
36+
In particular, it is not okay to skip checks in dead code if (a) the optimization level can affect which code is considered dead and (b) the checks might lead to an error that causes the `check`/`build` not to pass.
3737
This aspect of the policy favors consistency and predictability over performance.
3838

3939
# Unresolved questions

0 commit comments

Comments
 (0)