We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26ef01 commit abf2bb4Copy full SHA for abf2bb4
src/cargo/core/resolver/resolve.rs
@@ -42,9 +42,10 @@ pub struct Resolve {
42
/// forwards compatibility.
43
metadata: Metadata,
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.
+ /// `Cargo.lock` as the `[[patch.unused]]` table array. Tracking unused
+ /// patches helps prevent Cargo from being forced to re-update the
+ /// registry every time it runs, and keeps the resolve in a locked state
48
+ /// so it doesn't re-resolve the unused entries.
49
unused_patches: Vec<PackageId>,
50
/// A map from packages to a set of their public dependencies
51
public_dependencies: HashMap<PackageId, HashSet<PackageId>>,
0 commit comments