Skip to content

Commit d2ae6e6

Browse files
committed
Add caveat to discourage setting in RUSTFLAGS
1 parent 751f3ce commit d2ae6e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/inside-rust/call-for-testing-hint-mostly-unused.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ possible.
4545

4646
Applying this option to key crates you depend on (and use only a small subset
4747
of) can provide a substantial reduction in compile time, for debug builds and
48-
especially for release builds.
48+
especially for release builds. The remainder of this post shows how to apply
49+
this option selectively using Cargo, when to use it, and how it performs.
50+
51+
(Note that this option should *not* be applied to all crates, e.g. using
52+
`RUSTFLAGS`. See the rest of this post for guidance on when to apply it, and
53+
why it shouldn't be applied across the board.)
4954

5055
## How does this perform?
5156

0 commit comments

Comments
 (0)