Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobozaur committed Dec 10, 2024
1 parent d5b2481 commit 070a409
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions tools/rust_analyzer/aquery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ mod test {
crate_type: CrateType::Rlib,
build: Some(CrateSpecBuild {
label: "//:test".to_owned(),
build_file: "BUILD.bazel".to_owned(),
build_file: "BUILD.bazel".to_owned().into(),
}),
},
CrateSpec {
Expand Down Expand Up @@ -333,7 +333,10 @@ mod test {
env: BTreeMap::new(),
target: "x86_64-unknown-linux-gnu".into(),
crate_type: CrateType::Rlib,
build: None
build: Some(CrateSpecBuild {
label: "//:test".to_owned(),
build_file: "BUILD.bazel".to_owned().into(),
}),
},
CrateSpec {
aliases: BTreeMap::new(),
Expand Down
2 changes: 1 addition & 1 deletion tools/rust_analyzer/bin/discover_rust_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn project_discovery() -> anyhow::Result<()> {
&output_base,
&workspace,
&execution_root,
&rules_rust_name,
rules_rust_name,
&targets,
buildfile,
)
Expand Down
2 changes: 1 addition & 1 deletion tools/rust_analyzer/bin/gen_rust_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn main() -> anyhow::Result<()> {
&output_base,
&workspace,
&execution_root,
&rules_rust_name,
rules_rust_name,
&targets,
&workspace.join("rust-project.json"),
)?;
Expand Down
4 changes: 2 additions & 2 deletions tools/rust_analyzer/rust_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ mod tests {
#[test]
fn generate_rust_project_single() {
let project = generate_rust_project(
"workspace",
Utf8Path::new("workspace"),
"sysroot",
"sysroot_src",
&BTreeSet::from([CrateSpec {
Expand Down Expand Up @@ -489,7 +489,7 @@ mod tests {
#[test]
fn generate_rust_project_with_deps() {
let project = generate_rust_project(
"workspace",
Utf8Path::new("workspace"),
"sysroot",
"sysroot_src",
&BTreeSet::from([
Expand Down

0 comments on commit 070a409

Please sign in to comment.