File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ pub struct Resolve {
42
42
/// forwards compatibility.
43
43
metadata : Metadata ,
44
44
/// `[patch]` entries that did not match anything, preserved in
45
- /// `Cargo.lock` as the `[[patch.unused]]` table array.
46
- /// TODO: *Why* is this kept in `Cargo.lock`? Removing it doesn't seem to
47
- /// affect anything.
45
+ /// `Cargo.lock` as the `[[patch.unused]]` table array. Tracking unused
46
+ /// patches helps prevent Cargo from being forced to re-update the
47
+ /// registry every time it runs, and keeps the resolve in a locked state
48
+ /// so it doesn't re-resolve the unused entries.
48
49
unused_patches : Vec < PackageId > ,
49
50
/// A map from packages to a set of their public dependencies
50
51
public_dependencies : HashMap < PackageId , HashSet < PackageId > > ,
You can’t perform that action at this time.
0 commit comments