Stream: t-compiler/cargo-bisect-rustc

Topic: regress=ice is not working?


Santiago Pastorino (Aug 19 2020 at 15:00, on Zulip):

hey, I didn't have time to properly investigate this one but I was going over #75682 trying to find where this regressed

Santiago Pastorino (Aug 19 2020 at 15:00, on Zulip):

from what the issue says this regressed between 1.40 and 1.43

Santiago Pastorino (Aug 19 2020 at 15:00, on Zulip):

got the dates of those versions and run cargo-bisect-rustc

Santiago Pastorino (Aug 19 2020 at 15:01, on Zulip):
santiago@galago myapp (master)]$ cargo bisect-rustc --start 2019-12-16 --end 2020-04-20 --access github --regress=ice
installing nightly-2019-12-16
std for x86_64-unknown-linux-gnu: 17.73 MB / 17.73 MB [=================================================================================================================================================================] 100.00 % 13.82 MB/s testing...
RESULT: nightly-2019-12-16, ===> No
uninstalling nightly-2019-12-16

installing nightly-2020-04-20
std for x86_64-unknown-linux-gnu: 17.58 MB / 17.58 MB [=================================================================================================================================================================] 100.00 % 12.54 MB/s testing...
RESULT: nightly-2020-04-20, ===> No
uninstalling nightly-2020-04-20

ERROR: the end of the range (nightly-2020-04-20) does not reproduce the regression
Santiago Pastorino (Aug 19 2020 at 15:02, on Zulip):

but as you can see here ...

Santiago Pastorino (Aug 19 2020 at 15:02, on Zulip):
santiago@galago myapp (master)]$ cargo +nightly-2019-10-15-x86_64-unknown-linux-gnu build
   Compiling myapp v0.1.0 (/tmp/myapp)
error[E0277]: the trait bound `InterruptSectorManager: std::marker::Copy` is not satisfied
 --> src/main.rs:5:43
  |
5 | static FOO: [InterruptSectorManager; 2] = [InterruptSectorManager { field: &() }; 2];
  |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `InterruptSectorManager`
  |
  = note: the `Copy` trait is required because the repeated element will be copied

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.
error: could not compile `myapp`.

To learn more, run the command again with --verbose.
[santiago@galago myapp (master)]$ cargo +nightly-2020-07-27-x86_64-unknown-linux-gnu build
   Compiling myapp v0.1.0 (/tmp/myapp)
thread 'rustc' panicked at 'assertion failed: promoted.is_none()', src/librustc_mir/transform/check_consts/qualifs.rs:248:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.47.0-nightly (6c8927b0c 2020-07-26) running on x86_64-unknown-linux-gnu

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin

note: some of the compiler flags provided by cargo are hidden

error: could not compile `myapp`.

To learn more, run the command again with --verbose.
Santiago Pastorino (Aug 19 2020 at 15:02, on Zulip):

it should be working

Santiago Pastorino (Aug 19 2020 at 15:02, on Zulip):

unless I'm getting what regress=ice does in a wrong way

Santiago Pastorino (Aug 19 2020 at 15:02, on Zulip):

cc @pnkfelix @Chris Simpkins

pnkfelix (Aug 19 2020 at 16:36, on Zulip):

I'm pretty sure regress=ice was broken at some point (or at least I have a vague recollection of discovering it had been broken by some other PR to cargo-bisect-rustc, but I also thought I had addressed the breakage ... let me see

pnkfelix (Aug 19 2020 at 16:38, on Zulip):

okay this is what I was thinking of: https://github.com/rust-lang/cargo-bisect-rustc/pull/78#issuecomment-629361133

pnkfelix (Aug 19 2020 at 16:39, on Zulip):

but also: @Santiago Pastorino , I'm confused by your demonstration.

pnkfelix (Aug 19 2020 at 16:39, on Zulip):

you showed cargo +nightly-2020-07-27 as illustrating the ICE, but the range you fed into cargo-bisect-rustc only went up to 2020-04-20; do you know if 2020-04-20 itself also demonstrates the ICE when you run it by hand?

Last update: Nov 25 2020 at 02:15UTC