Skip to content

Commit 06fb724

Browse files
bors[bot]matklad
andauthored
Merge #4258
4258: Test/check the whole package r=matklad a=matklad Closes #4255 bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 3c96de5 + 247d32c commit 06fb724

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

crates/rust-analyzer/src/main_loop/handlers.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,7 @@ pub fn handle_runnables(
400400
range: Default::default(),
401401
label: format!("cargo {} -p {}", cmd, spec.package),
402402
bin: "cargo".to_string(),
403-
args: {
404-
let mut args = vec![cmd.to_string()];
405-
spec.clone().push_to(&mut args);
406-
args
407-
},
403+
args: vec![cmd.to_string(), "--package".to_string(), spec.package.clone()],
408404
extra_args: Vec::new(),
409405
env: FxHashMap::default(),
410406
cwd: workspace_root.map(|root| root.to_owned()),

crates/rust-analyzer/tests/heavy_tests/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn main() {}
149149
"cwd": server.path().join("foo")
150150
},
151151
{
152-
"args": [ "check", "--package", "foo", "--test", "spam" ],
152+
"args": [ "check", "--package", "foo" ],
153153
"extraArgs": [],
154154
"bin": "cargo",
155155
"env": {},
@@ -161,7 +161,7 @@ fn main() {}
161161
"cwd": server.path().join("foo")
162162
},
163163
{
164-
"args": [ "test", "--package", "foo", "--test", "spam" ],
164+
"args": [ "test", "--package", "foo" ],
165165
"extraArgs": [],
166166
"bin": "cargo",
167167
"env": {},

0 commit comments

Comments
 (0)