Deleted deprecated `rust_analyzer` rule. (#1405)
* Deleted deprecated rule.
* Regenerate documentation
diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel
index a8e7c69..5e2a6bc 100644
--- a/docs/BUILD.bazel
+++ b/docs/BUILD.bazel
@@ -70,7 +70,6 @@
name = "rust_analyzer",
header_template = ":rust_analyzer.vm",
symbols = [
- "rust_analyzer",
"rust_analyzer_aspect",
],
),
diff --git a/docs/flatten.md b/docs/flatten.md
index 32fa959..f77e2da 100644
--- a/docs/flatten.md
+++ b/docs/flatten.md
@@ -12,7 +12,6 @@
* [fail_when_enabled](#fail_when_enabled)
* [incompatible_flag](#incompatible_flag)
* [rules_rust_dependencies](#rules_rust_dependencies)
-* [rust_analyzer](#rust_analyzer)
* [rust_analyzer_aspect](#rust_analyzer_aspect)
* [rust_binary](#rust_binary)
* [rust_bindgen](#rust_bindgen)
@@ -158,26 +157,6 @@
| <a id="incompatible_flag-issue"></a>issue | The link to the github issue associated with this flag | String | required | |
-<a id="#rust_analyzer"></a>
-
-## rust_analyzer
-
-<pre>
-rust_analyzer(<a href="#rust_analyzer-name">name</a>, <a href="#rust_analyzer-targets">targets</a>)
-</pre>
-
-Deprecated: gen_rust_project can now create a rust-project.json without a rust_analyzer rule.
-
-
-**ATTRIBUTES**
-
-
-| Name | Description | Type | Mandatory | Default |
-| :------------- | :------------- | :------------- | :------------- | :------------- |
-| <a id="rust_analyzer-name"></a>name | A unique name for this target. | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required | |
-| <a id="rust_analyzer-targets"></a>targets | List of all targets to be included in the index | <a href="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional | [] |
-
-
<a id="#rust_binary"></a>
## rust_binary
diff --git a/docs/rust_analyzer.md b/docs/rust_analyzer.md
index 90b8888..cff1d61 100644
--- a/docs/rust_analyzer.md
+++ b/docs/rust_analyzer.md
@@ -1,7 +1,6 @@
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
# Rust Analyzer
-* [rust_analyzer](#rust_analyzer)
* [rust_analyzer_aspect](#rust_analyzer_aspect)
@@ -71,26 +70,6 @@
```
-<a id="#rust_analyzer"></a>
-
-## rust_analyzer
-
-<pre>
-rust_analyzer(<a href="#rust_analyzer-name">name</a>, <a href="#rust_analyzer-targets">targets</a>)
-</pre>
-
-Deprecated: gen_rust_project can now create a rust-project.json without a rust_analyzer rule.
-
-
-**ATTRIBUTES**
-
-
-| Name | Description | Type | Mandatory | Default |
-| :------------- | :------------- | :------------- | :------------- | :------------- |
-| <a id="rust_analyzer-name"></a>name | A unique name for this target. | <a href="https://bazel.build/docs/build-ref.html#name">Name</a> | required | |
-| <a id="rust_analyzer-targets"></a>targets | List of all targets to be included in the index | <a href="https://bazel.build/docs/build-ref.html#labels">List of labels</a> | optional | [] |
-
-
<a id="#rust_analyzer_aspect"></a>
## rust_analyzer_aspect
diff --git a/docs/symbols.bzl b/docs/symbols.bzl
index 1b48139..42be88c 100644
--- a/docs/symbols.bzl
+++ b/docs/symbols.bzl
@@ -49,7 +49,6 @@
_capture_clippy_output = "capture_clippy_output",
_error_format = "error_format",
_extra_rustc_flags = "extra_rustc_flags",
- _rust_analyzer = "rust_analyzer",
_rust_analyzer_aspect = "rust_analyzer_aspect",
_rust_binary = "rust_binary",
_rust_clippy = "rust_clippy",
@@ -146,7 +145,6 @@
rust_clippy = _rust_clippy
rust_clippy_aspect = _rust_clippy_aspect
-rust_analyzer = _rust_analyzer
rust_analyzer_aspect = _rust_analyzer_aspect
crate = _crate
diff --git a/examples/hello_lib/BUILD.bazel b/examples/hello_lib/BUILD.bazel
index e8fb6f6..1e1f830 100644
--- a/examples/hello_lib/BUILD.bazel
+++ b/examples/hello_lib/BUILD.bazel
@@ -1,4 +1,12 @@
-load("@rules_rust//rust:defs.bzl", "rust_analyzer", "rust_doc", "rust_doc_test", "rust_library", "rust_shared_library", "rust_static_library", "rust_test")
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_doc",
+ "rust_doc_test",
+ "rust_library",
+ "rust_shared_library",
+ "rust_static_library",
+ "rust_test",
+)
package(default_visibility = ["//visibility:public"])
@@ -66,8 +74,3 @@
name = "hello_lib_doc_test",
crate = ":hello_lib",
)
-
-rust_analyzer(
- name = "hello_rust_analyzer",
- targets = [":hello_lib"],
-)
diff --git a/rust/defs.bzl b/rust/defs.bzl
index 8fef5af..4dc6779 100644
--- a/rust/defs.bzl
+++ b/rust/defs.bzl
@@ -38,7 +38,6 @@
)
load(
"//rust/private:rust_analyzer.bzl",
- _rust_analyzer = "rust_analyzer",
_rust_analyzer_aspect = "rust_analyzer_aspect",
)
load(
@@ -115,9 +114,6 @@
rust_analyzer_aspect = _rust_analyzer_aspect
# See @rules_rust//rust/private:rust_analyzer.bzl for a complete description.
-rust_analyzer = _rust_analyzer
-# See @rules_rust//rust/private:rust_analyzer.bzl for a complete description.
-
rustfmt_aspect = _rustfmt_aspect
# See @rules_rust//rust/private:rustfmt.bzl for a complete description.
diff --git a/rust/private/rust_analyzer.bzl b/rust/private/rust_analyzer.bzl
index 2497759..771f659 100644
--- a/rust/private/rust_analyzer.bzl
+++ b/rust/private/rust_analyzer.bzl
@@ -220,21 +220,3 @@
Detect the sysroot and store in a file for use by the gen_rust_project tool.
"""),
)
-
-def _rust_analyzer_impl(_ctx):
- pass
-
-rust_analyzer = rule(
- attrs = {
- "targets": attr.label_list(
- aspects = [rust_analyzer_aspect],
- doc = "List of all targets to be included in the index",
- ),
- },
- implementation = _rust_analyzer_impl,
- toolchains = [str(Label("//rust:toolchain"))],
- incompatible_use_toolchain_transition = True,
- doc = dedent("""\
- Deprecated: gen_rust_project can now create a rust-project.json without a rust_analyzer rule.
- """),
-)