From 0b8f83345f7a6db06de2e6b187bb36165cd9a20c Mon Sep 17 00:00:00 2001 From: Fabian Wolff Date: Fri, 30 Jan 2026 05:58:47 -0800 Subject: [PATCH] Internal change. PiperOrigin-RevId: 863200095 --- .../bazel_support/compile_rust.bzl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/rs_bindings_from_cc/bazel_support/compile_rust.bzl b/rs_bindings_from_cc/bazel_support/compile_rust.bzl index d3efc8b20..7864f13ea 100644 --- a/rs_bindings_from_cc/bazel_support/compile_rust.bzl +++ b/rs_bindings_from_cc/bazel_support/compile_rust.bzl @@ -115,12 +115,23 @@ def compile_rust(ctx, attr, src, extra_srcs, deps, crate_name, include_coverage, compile_data_targets = depset([]), owner = ctx.label, ), - # LINT.IfChange - rust_flags = ["-Zallow-features=custom_inner_attributes,impl_trait_in_assoc_type,register_tool,negative_impls,extern_types,arbitrary_self_types,allocator_api,cfg_sanitize"], - # LINT.ThenChange(//docs/overview/unstable_features.md) output_hash = output_hash, force_all_deps_direct = force_all_deps_direct, include_coverage = include_coverage, + # LINT.IfChange + allowed_unstable_features = [ + # start + "allocator_api", + "arbitrary_self_types", + "cfg_sanitize", + "custom_inner_attributes", + "extern_types", + "impl_trait_in_assoc_type", + "negative_impls", + "register_tool", + # end + ], + # LINT.ThenChange(//docs/overview/unstable_features.md) ) return DepVariantInfo(