Skip to content

Commit e3b53de

Browse files
committed
Re-emphasize that the hint shouldn't be applied to all your dependencies
1 parent 10c0a3f commit e3b53de

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ every crate; if used when not applicable, this option can make builds much
7070
code generation for those items repeatedly. In particular, avoid using this
7171
hint for crates whose API surface is mostly used, and/or used in multiple
7272
different crates or binaries (e.g. multiple test binaries that each test a
73-
substantial swath of the API). Always do performance analysis when considering
74-
this hint, and only apply it if it applies obvious and substantial wins for
75-
your users.
73+
substantial swath of the API).
74+
75+
Always do performance analysis when considering this hint, and only apply it if
76+
it applies obvious and substantial wins for your users. Never apply it across
77+
the board to all your dependencies.
7678

7779
If most of the items in your crate are polymorphic (generic), this hint may be
7880
redundant, as Rust already defers compilation of polymorphic items until they

0 commit comments

Comments
 (0)