Skip to content

Commit 73ba3f3

Browse files
committed
Auto merge of #11107 - rust-lang:revert-11092-patch-1, r=weihanglo
Revert "Clarify when cargo detects changes" Reverts #11092 We had not fully confirmed that this language change matches the new behavior.
2 parents 8c5509b + 7df918e commit 73ba3f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/src/reference/build-scripts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ cross-compiling, so keep that in consideration of the impact on compile time.
323323

324324
When rebuilding a package, Cargo does not necessarily know if the build script
325325
needs to be run again. By default, it takes a conservative approach of always
326-
re-running the build script if *any* file within the package directory is changed
327-
(or the list of files controlled by the [`exclude` and `include` fields]). For
328-
most cases, this is not a good choice, so it is recommended that every build script
326+
re-running the build script if any file within the package is changed (or the
327+
list of files controlled by the [`exclude` and `include` fields]). For most
328+
cases, this is not a good choice, so it is recommended that every build script
329329
emit at least one of the `rerun-if` instructions (described below). If these
330330
are emitted, then Cargo will only re-run the script if the given value has
331331
changed. If Cargo is re-running the build scripts of your own crate or a

0 commit comments

Comments
 (0)