Skip to content

Commit

Permalink
Cleanup deprecated code (#1577)
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre authored Oct 3, 2022
1 parent 86dc561 commit 352bfeb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports_files(["LICENSE"])
bzl_library(
name = "bzl_lib",
srcs = [
":workspace.bzl",
":version.bzl",
],
visibility = ["//visibility:public"],
)
Expand Down
18 changes: 0 additions & 18 deletions rust/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -609,21 +609,3 @@ def rust_repository_set(
if register_toolchain:
native.register_toolchains(*all_toolchain_names)
native.register_toolchains(str(Label("//rust/private/dummy_cc_toolchain:dummy_cc_wasm32_toolchain")))

# Inform users that they should be using the canonical name if it's not detected
if "rules_rust" not in native.existing_rules():
message = "\n" + ("=" * 79) + "\n"
message += (
"It appears that you are trying to import rules_rust without using its\n" +
"canonical name, \"@rules_rust\" Please change your WORKSPACE file to\n" +
"import this repo with `name = \"rules_rust\"` instead."
)

if "io_bazel_rules_rust" in native.existing_rules():
message += "\n\n" + (
"Note that the previous name of \"@io_bazel_rules_rust\" is deprecated.\n" +
"See https://github.com/bazelbuild/rules_rust/issues/499 for context."
)

message += "\n" + ("=" * 79)
fail(message)
7 changes: 0 additions & 7 deletions workspace.bzl

This file was deleted.

0 comments on commit 352bfeb

Please sign in to comment.