Repeated "warning: profiles for the non root package will be ignored" when building Rust #46951
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Sample output while in the middle of working on something:
15 of the 18 first lines of output are effectively noise due to this warning.
Indeed,
src/tools/cargo/Cargo.toml
contains:But this same
Cargo.toml
file is both the root of a workspace when thecargo
repository is used on its own, and a member of a larger workspace when use like here as a submodule of therust
repository. So this[profile]
section is both sometimes significant (and perhaps should not be remove) and sometimes not (so the warning is not a false-positive).Should there be an exception list to silence this somewhat verbose warning? Or is this not worth doing without fixing the underlying issue: adding a mechanism for enabling overflow checking per-crate rather than per-workspace? (Is there a tracking issue for that? It is close to but not quite rust-lang/cargo#1359.)
The text was updated successfully, but these errors were encountered: