Skip to content

Commit

Permalink
Eliminate rustc_check_flags in favor of extra_rustc_flags
Browse files Browse the repository at this point in the history
Summary:
None of the current usages of `rustc_check_flags` was used in such a way that flags only being passed to `check` builds made sense. They were all just using it as a poor substitute for `extra_rustc_flags`, i.e. add flags without erasing all the existing flags configured by the toolchain's `rustc_flags`.

The semantics of `rustc_check_flags` is confusing to begin with. Those flags are not passed just to `…[check]` builds. They are passed also for dependencies during pipelined non-check builds, because those also involve building metadata.

This diff deletes support for `rustc_check_flags` in `RustToolchainInfo` and switches existing uses to `extra_rustc_flags`.

Reviewed By: zertosh, diliop

Differential Revision: D55438348

fbshipit-source-id: 221e1b6944774eebbeebac6f25882c9024b7b579
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Mar 27, 2024
1 parent 41ebbee commit 12f3453
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/.buckconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ target_platform_detector_spec = target:root//...->prelude//platforms:default
[rust]
default_edition = 2021
remap_src_paths = yes
rustc_check_flags = --cap-lints=warn

0 comments on commit 12f3453

Please sign in to comment.