-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(toml): Expose surce/spans for VirtualManifests #13603
Conversation
This will help with doing lint analysis after parsing
This is a hold over from when this was unstable
Its the caller's job to decide whether the warning is relevant
6572ece
to
40848e7
Compare
CI is blocked until |
Will do that today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the huge work!
src/cargo/util/toml/mod.rs
Outdated
@@ -1362,7 +1365,12 @@ fn to_virtual_manifest( | |||
bail!("virtual manifests must be configured with [workspace]"); | |||
} | |||
}; | |||
let resolved_toml = original_toml.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This additional clone seems unfortunate, though I expect it won't really hurt the performance in normal cases, as it's for virtual manifests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do a small normalization later on. Over time, I will be doing more.
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 5 commits in 2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b..d438c80c45c24be676ef5867edc79d0a14910efe 2024-03-15 21:39:18 +0000 to 2024-03-19 16:11:22 +0000 - refactor(toml): Expose surce/spans for VirtualManifests (rust-lang/cargo#13603) - cargo/init: avoid target.name assignments if possible (rust-lang/cargo#13606) - chore: Fix minor grammar nit in command-line help (rust-lang/cargo#13602) - Bump to 0.80.0; update changelog (rust-lang/cargo#13604) - cargo: prevent dashes in lib.name (rust-lang/cargo#12783) r? ghost
What does this PR try to resolve?
This is a follow up to #13593, expanding support from
Manifest
toVirtualManifest
as well.This also does other clean up along the way in preparation for making a more explicit
resolve_toml
phase.How should we test and review this PR?
Additional information