Skip to content

Commit

Permalink
Fix name of toolchain repo (#2395)
Browse files Browse the repository at this point in the history
It looks like we register these as _tools not as _srcs, this looks like
it was maybe a typo in
#1528

Fixes #2388
  • Loading branch information
illicitonion authored Jan 5, 2024
1 parent 1d8098f commit 0a4523e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions examples/bzlmod/hello_world/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_doc")

package(default_visibility = ["//visibility:public"])
Expand Down Expand Up @@ -48,3 +49,10 @@ rust_binary(
"vendored",
]
]

build_test(
name = "gen_rust_project",
targets = [
"@rules_rust//tools/rust_analyzer:gen_rust_project",
],
)
2 changes: 1 addition & 1 deletion rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def rust_register_toolchains(
)

toolchain_names.append(rust_analyzer_repo_name)
toolchain_labels[rust_analyzer_repo_name] = "@{}_srcs//:rust_analyzer_toolchain".format(
toolchain_labels[rust_analyzer_repo_name] = "@{}_tools//:rust_analyzer_toolchain".format(
rust_analyzer_repo_name,
)
exec_compatible_with_by_toolchain[rust_analyzer_repo_name] = []
Expand Down

0 comments on commit 0a4523e

Please sign in to comment.