diff --git a/docs/flatten.md b/docs/flatten.md index 88c7388878..f650bc92bb 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1120,7 +1120,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | default_edition | The edition to use for rust_* rules that don't specify an edition. | String | optional | "2018" | | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | required | | -| llvm_tools | LLVM tools that are shipped with the Rust toolchain. | List of labels | optional | [] | +| llvm_tools | LLVM tools that are shipped with the Rust toolchain. | Label | optional | None | | opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "0", "opt": "3"} | | os | The operating system for the current toolchain | String | required | | | rust_doc | The location of the rustdoc binary. Can be a direct source or a filegroup containing one item. | Label | required | | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index a5f4e9ac8e..8f68ff776a 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -95,7 +95,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | default_edition | The edition to use for rust_* rules that don't specify an edition. | String | optional | "2018" | | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | required | | -| llvm_tools | LLVM tools that are shipped with the Rust toolchain. | List of labels | optional | [] | +| llvm_tools | LLVM tools that are shipped with the Rust toolchain. | Label | optional | None | | opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "0", "opt": "3"} | | os | The operating system for the current toolchain | String | required | | | rust_doc | The location of the rustdoc binary. Can be a direct source or a filegroup containing one item. | Label | required | | diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index 33799c5abb..687e0df195 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -533,7 +533,7 @@ rust_toolchain = rule( ), mandatory = True, ), - "llvm_tools": attr.label_list( + "llvm_tools": attr.label( doc = "LLVM tools that are shipped with the Rust toolchain.", allow_files = True, ),