Skip to content

Fix coverage for crates with mixed sources - #4106

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:coverage
Jun 25, 2026
Merged

Fix coverage for crates with mixed sources#4106
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:coverage

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

An expansion of #4079 with some added testing.

closes #4079

@UebelAndre
UebelAndre requested a review from slackito June 25, 2026 17:19
@UebelAndre
UebelAndre marked this pull request as ready for review June 25, 2026 17:19
@UebelAndre
UebelAndre enabled auto-merge June 25, 2026 17:22
@UebelAndre
UebelAndre added this pull request to the merge queue Jun 25, 2026
Merged via the queue into bazelbuild:main with commit b62b281 Jun 25, 2026
3 checks passed
slackito added a commit to slackito/rules_rust that referenced this pull request Jul 8, 2026
This allows callers of rustc_compile_action to override the default
flags.

The motivating example for making this change was some path
remapping done by Crubit (https://github.com/google/crubit/blob/main/rs_bindings_from_cc/bazel_support/compile_rust.bzl#L100).
PR bazelbuild#4106 added another `--remap-path-prefix` flag after the code that
adds `rust_flags` to the rustc invocation, and the new remapping took
precedence.
patrickmscott pushed a commit to patrickmscott/rules_rust that referenced this pull request Jul 13, 2026
…n. (bazelbuild#4135)

This allows callers of rustc_compile_action to override the default
flags.

The motivating example for making this change was some path remapping
done by Crubit
(https://github.com/google/crubit/blob/685a46aabbdf6552803c5bd77da6628008d0d245/rs_bindings_from_cc/bazel_support/compile_rust.bzl#L100).
PR bazelbuild#4106 added another `--remap-path-prefix` flag after the code that
adds `rust_flags` to the rustc invocation, and the new remapping took
precedence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants