Skip to content

Clippy aspect: depend on dependency .rmeta under pipelining - #4380

Open
TrapsterDK wants to merge 1 commit into
bazelbuild:mainfrom
TrapsterDK:clippy-rmeta-inputs
Open

TrapsterDK wants to merge 1 commit into
bazelbuild:mainfrom
TrapsterDK:clippy-rmeta-inputs

Conversation

@TrapsterDK

Copy link
Copy Markdown
Contributor

Fixes #4379.

With pipelined compilation, the clippy aspect now takes dependency .rmeta files instead of .rlib files, for any target type. Clippy only emits metadata, so it never links.

  • metadata_only argument on _depend_on_metadata, collect_inputs and construct_arguments in rust/private/rustc.bzl.
  • rust/private/clippy.bzl passes metadata_only = True to both.
  • Other compiles are unchanged. Deps without metadata still fall back to the rlib.
  • New test clippy_aspect_uses_dep_metadata_test in test/unit/clippy. It fails without the change.

bazel test //test/unit/clippy/... passes.

Assisted by Claude.

Clippy only emits metadata, so it does not need dependency .rlib files.

Assisted-by: Claude

This branch has not been deployed

No deployments
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.

Clippy aspect depends on dependency .rlib instead of .rmeta under pipelining.

1 participant