Skip to content

Commit 75f409f

Browse files
committed
make it clear SourceId serialization will change in v4
1 parent 5ef7b7c commit 75f409f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cargo/core/source_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ impl fmt::Display for SourceId {
618618
// Don't replace the URL display for git references,
619619
// because those are kind of expected to be URLs.
620620
write!(f, "{}", self.inner.url)?;
621-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
621+
// TODO(-Znext-lockfile-bump): set it to true when the default is
622622
// lockfile v4, because we want Source ID serialization to be
623623
// consistent with lockfile.
624624
if let Some(pretty) = reference.pretty_ref(false) {

src/cargo/sources/git/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl<'cfg> Debug for GitSource<'cfg> {
168168
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
169169
write!(f, "git repo at {}", self.remote.url())?;
170170

171-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
171+
// TODO(-Znext-lockfile-bump): set it to true when the default is
172172
// lockfile v4, because we want Source ID serialization to be
173173
// consistent with lockfile.
174174
match self.manifest_reference.pretty_ref(false) {

src/cargo/util/toml_mut/dependency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ impl std::fmt::Display for GitSource {
882882
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
883883
let git_ref = self.git_ref();
884884

885-
// TODO(-Znext-lockfile-bump): set it to true when stabilizing
885+
// TODO(-Znext-lockfile-bump): set it to true when the default is
886886
// lockfile v4, because we want Source ID serialization to be
887887
// consistent with lockfile.
888888
if let Some(pretty_ref) = git_ref.pretty_ref(false) {

0 commit comments

Comments
 (0)