Skip to content

Commit ff532ec

Browse files
committed
Clarify comment on allow_package.
1 parent 3595de3 commit ff532ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cargo/core/compiler/fingerprint.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,8 +1550,11 @@ impl DepInfoPathType {
15501550
/// The `rustc_cwd` argument is the absolute path to the cwd of the compiler
15511551
/// when it was invoked.
15521552
///
1553-
/// If the `allow_package` argument is false, then package-relative paths are
1554-
/// skipped and ignored.
1553+
/// If the `allow_package` argument is true, then package-relative paths are
1554+
/// included. If it is false, then package-relative paths are skipped and
1555+
/// ignored (typically used for registry or git dependencies where we assume
1556+
/// the source never changes, and we don't want the cost of running `stat` on
1557+
/// all those files).
15551558
///
15561559
/// The serialized Cargo format will contain a list of files, all of which are
15571560
/// relative if they're under `root`. or absolute if they're elsewhere.

0 commit comments

Comments
 (0)