Skip to content

cargo: apply explicit lint config to build scripts - #4275

Open
jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-build-script-lints
Open

jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-build-script-lints

Conversation

@jrandolf

Copy link
Copy Markdown
Contributor

Allow cargo_build_script to accept an explicit lint_config and forward it to build-script compilation. Explicit rustc lints now apply in execution configurations as well, so build scripts and procedural macros honor the configuration attached to them.

The four owning analysis tests pass on macOS, including a build script compiled in the execution configuration. Closes #3486.

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.

cargo_build_script no such attribute lint_config

1 participant