From 0a2c351b5629ea6cacfa3ffd0f0b940e12f0f1d8 Mon Sep 17 00:00:00 2001 From: John Cater Date: Tue, 17 Dec 2024 15:55:30 -0500 Subject: [PATCH] Remove `toolchain.crosstool_files` and `_cc_toolchains`. Fixes #3115. --- rust/toolchain.bzl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index a4283710c3..af8a53c6d3 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -663,7 +663,6 @@ def _rust_toolchain_impl(ctx): clippy_driver = sysroot.clippy, cargo_clippy = sysroot.cargo_clippy, compilation_mode_opts = compilation_mode_opts, - crosstool_files = ctx.files._cc_toolchain, default_edition = ctx.attr.default_edition, dylib_ext = ctx.attr.dylib_ext, env = ctx.attr.env, @@ -877,10 +876,6 @@ rust_toolchain = rule( "For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations" ), ), - # TODO: #3115 - Remove this attribute. - "_cc_toolchain": attr.label( - default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), - ), "_experimental_use_coverage_metadata_files": attr.label( default = Label("//rust/settings:experimental_use_coverage_metadata_files"), ),