mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Re-implement dependecny tracking for cargo script
This commit is contained in:
parent
2f828073aa
commit
0b24599cf9
10 changed files with 187 additions and 234 deletions
|
@ -305,8 +305,10 @@ impl CargoWorkspace {
|
|||
.collect(),
|
||||
);
|
||||
}
|
||||
if cargo_toml.extension().is_some_and(|x| x == "rs") {
|
||||
// TODO: enable `+nightly` for cargo scripts
|
||||
// The manifest is a rust file, so this means its a script manifest
|
||||
if cargo_toml.extension().is_some_and(|ext| ext == "rs") {
|
||||
// Deliberately don't set up RUSTC_BOOTSTRAP or a nightly override here, the user should
|
||||
// opt into it themselves.
|
||||
other_options.push("-Zscript".to_owned());
|
||||
}
|
||||
meta.other_options(other_options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue