./x build compiler --stage 0
reports success, but it shouldn't: deleting method used in another crate does not cause compilation to fail
#134970
Labels
A-contributor-roadblock
Area: Makes things more difficult for new contributors to rust itself
C-bug
Category: This is a bug.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
./x build compiler --stage 0
reports success, but it shouldn't: deleting method used in another crate does not cause compilation to fail.Okay, I found bug in
./x
. If I delete a method in compiler source code, then./x build compiler --stage 0
executes successfully. But it shouldn't, because this method is used in another compiler's crate.Steps to reproduce (on x86_64 Linux):
git clone --depth=1 https://github.com/rust-lang/rust
cd rust
cp config.example.toml config.toml
./x build library
(this command will execute successfully)compiler/rustc_ast/src/token.rs
: comment functionpub fn is_like_plus
./x build compiler --stage 0
, this command will succeed. But it shouldn't, becauseis_like_plus
is used in another crate!./x build library
. This command will correctly failI found this bug when attempting to contribute to rustc. So this bug presents minor contributor roadblock, so I mark it so.
I used current HEAD, i. e. aea4e43 .
The bug seems to be related to #134916 .
@rustbot label A-contributor-roadblock T-bootstrap C-bug
The text was updated successfully, but these errors were encountered: