Skip to content

Commit 1db86b0

Browse files
committed
requirements from replacements do not come from the lock file
I think the core of the problem is that 725420e was a mistake. Before that PR we used `=` constraints to imply that it came from lock file so when we saw a `=` constraints being constructed for a replace it should use the new system for marking something as coming from lock file. But I don't think that is the semantics that an `=` constraint implies in this context.
1 parent 6644828 commit 1db86b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cargo/util/toml/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1274,8 +1274,7 @@ impl TomlManifest {
12741274
replacement.unused_keys(),
12751275
&mut cx.warnings,
12761276
);
1277-
dep.set_version_req(OptVersionReq::exact(&version))
1278-
.lock_version(&version);
1277+
dep.set_version_req(OptVersionReq::exact(&version));
12791278
replace.push((spec, dep));
12801279
}
12811280
Ok(replace)

0 commit comments

Comments
 (0)