Repository navigation
rust: docs aspect loads on stock rules_rust (part of #15298) - #15312
Merged
Merged
Conversation
A consumer that adds rules_dx without our rules_rust override failed to load @rules_dx//rust:defs.bzl, because the docs aspect loaded rustdoc_toolchain.bzl, which only the patched rules_rust has. The aspect now uses the rustdoc toolchain type when rules_rust has one and the stock rustdoc_compile_action signature otherwise.
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A consumer that adds rules_dx without the rules_dx rules_rust override failed to load
@rules_dx//rust:defs.bzl, because the docs aspect loadedrustdoc_toolchain.bzl, which only the patched rules_rust has.The aspect now uses the rustdoc toolchain type when rules_rust has one, and the stock
rustdoc_compile_actionsignature otherwise. The removal trigger isbazelbuild/rules_rust#4354.Adds the harness case
a_consumer_without_the_rules_rust_override_loads_the_rust_rules.Tests:
tools/dx test //tools/testing:nested_bazel_harness_test -- --jobs=4 --test_tag_filters= --test_filter=a_consumer_without_the_rules_rust_override_loads_the_rust_rules: passes. The harness cache set already has rules_rust-0.75.0.tar.gz.tools/dx check --apply --affected: Bazel ran out of memory on the shared host and nothing was changed. The full gate was left to CI.Part of #15298.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT