Open matthiaskrgr opened 3 months ago
searched nightlies: from nightly-2023-04-15 to nightly-2024-06-30 regressed nightly: nightly-2024-06-30 searched commit range: https://github.com/rust-lang/rust/compare/e9e6e2e444c30c23a9c878a88fbc3978c2acad95...ba1d7f4a083e6402679105115ded645512a7aea8 regressed commit: https://github.com/rust-lang/rust/commit/ba1d7f4a083e6402679105115ded645512a7aea8 (#120639)
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zcrate-attr=feature(effects)
Program output
``` error: expected item, found `;` --> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:1:2 | 1 | ; | ^ help: remove this semicolon error[E0658]: const trait impls are experimental --> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:3:13 | 3 | trait io = const io + ; | ^^^^^ | = note: see issue #67792 for more information
= help: add `#![feature(const_trait_impl)]` to the crate attributes to enable
= note: this compiler was built on 2024-06-29; consider upgrading it if it is out of date
error[E0658]: trait aliases are experimental
--> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:3:1
|
3 | trait io = const io + ;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #41517 for more information
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
= note: this compiler was built on 2024-06-29; consider upgrading it if it is out of date
warning: the feature `effects` is incomplete and may not be safe to use and/or cause compiler crashes
--> :1:9
|
1 | feature(effects)
| ^^^^^^^
|
= note: see issue #102090 for more information
= note: `#[warn(incomplete_features)]` on by default
warning: trait alias `io` should have an upper camel case name
--> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:3:7
|
3 | trait io = const io + ;
| ^^ help: convert the identifier to upper camel case (notice the capitalization): `Io`
|
= note: `#[warn(non_camel_case_types)]` on by default
error[E0601]: `main` function not found in crate `mvce`
--> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:3:30
|
3 | trait io = const io + ;
| ^ consider adding a `main` function to `/tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs`
error: `const` can only be applied to `#[const_trait]` traits
--> /tmp/icemaker_global_tempdir.JOmnMv0w5JxT/rustc_testrunner_tmpdir_reporting.SAR9KIabk7aZ/mvce.rs:3:20
|
3 | trait io = const io + ;
| ^^
error: internal compiler error: compiler/rustc_ty_utils/src/assoc.rs:267:21: associated_type_for_effects: DefId(0:3 ~ mvce[9951]::io) should be Trait or Impl but is TraitAlias
thread 'rustc' panicked at compiler/rustc_ty_utils/src/assoc.rs:267:21:
Box
stack backtrace:
0: 0x7edeb8e832b5 - std::backtrace_rs::backtrace::libunwind::trace::h9fec972da723f824
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
1: 0x7edeb8e832b5 - std::backtrace_rs::backtrace::trace_unsynchronized::h6750dc8e20aabcad
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7edeb8e832b5 - std::sys::backtrace::_print_fmt::h112c52e5e2edb557
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/sys/backtrace.rs:68:5
3: 0x7edeb8e832b5 - ::fmt::h4713d06d34163f46
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/sys/backtrace.rs:44:22
4: 0x7edeb8ed2d9b - core::fmt::rt::Argument::fmt::h919dfde74ebabb2a
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/core/src/fmt/rt.rs:173:76
5: 0x7edeb8ed2d9b - core::fmt::write::h63ad278710fcf618
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/core/src/fmt/mod.rs:1174:21
6: 0x7edeb8e77e9f - std::io::Write::write_fmt::h48f75cc65a268f9a
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/io/mod.rs:1835:15
7: 0x7edeb8e8308e - std::sys::backtrace::_print::ha47bd77a3336440c
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/sys/backtrace.rs:47:5
8: 0x7edeb8e8308e - std::sys::backtrace::print::hd71c23c2433456bf
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/sys/backtrace.rs:34:9
9: 0x7edeb8e859d9 - std::panicking::default_hook::{{closure}}::ha7861419c6fed626
10: 0x7edeb8e8577c - std::panicking::default_hook::hdb522e40b65d9458
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/panicking.rs:292:9
11: 0x7edeb55b18a0 - std[ee1287dda0decb26]::panicking::update_hook::>::{closure#0}
12: 0x7edeb8e862af - as core::ops::function::Fn>::call::h8a54893ded3fcd8c
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/alloc/src/boxed.rs:2078:9
13: 0x7edeb8e862af - std::panicking::rust_panic_with_hook::h79c7320e6dd14ff0
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/panicking.rs:804:13
14: 0x7edeb55eb971 - std[ee1287dda0decb26]::panicking::begin_panic::::{closure#0}
15: 0x7edeb55ded56 - std[ee1287dda0decb26]::sys::backtrace::__rust_end_short_backtrace::::{closure#0}, !>
16: 0x7edeb55ded06 - std[ee1287dda0decb26]::panicking::begin_panic::
17: 0x7edeb55f4761 - ::emit_producing_guarantee
18: 0x7edeb5be82bc - rustc_middle[375bbde5f17fb8ea]::util::bug::opt_span_bug_fmt::::{closure#0}
19: 0x7edeb5bcea8a - rustc_middle[375bbde5f17fb8ea]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0}
20: 0x7edeb5bce92b - rustc_middle[375bbde5f17fb8ea]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !>
21: 0x7edeb3a11960 - rustc_middle[375bbde5f17fb8ea]::util::bug::bug_fmt
22: 0x7edeb6c5459d - rustc_ty_utils[233de4e6a9d65809]::assoc::associated_type_for_effects
23: 0x7edeb6c5070f - rustc_query_impl[e193fcc3be99e64a]::plumbing::__rust_begin_short_backtrace::>
24: 0x7edeb6b20ce0 - rustc_query_system[ab5481f6c869ba71]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e193fcc3be99e64a]::plumbing::QueryCtxt, false>
25: 0x7edeb6b1bb46 - rustc_query_impl[e193fcc3be99e64a]::query_impl::associated_type_for_effects::get_query_non_incr::__rust_end_short_backtrace
26: 0x7edeb700f440 - rustc_middle[375bbde5f17fb8ea]::query::plumbing::query_get_at::>>
27: 0x7edeb6ecda9c - ::lower_poly_trait_ref
28: 0x7edeb7199515 - ::lower_mono_bounds
29: 0x7edeb7198dfc - rustc_hir_analysis[190a10ac9c7209da]::collect::predicates_of::implied_predicates_with_filter
30: 0x7edeb71c6046 - rustc_hir_analysis[190a10ac9c7209da]::collect::predicates_of::explicit_implied_predicates_of
31: 0x7edeb7631331 - rustc_query_impl[e193fcc3be99e64a]::plumbing::__rust_begin_short_backtrace::>
32: 0x7edeb76312e5 - >::call_once
33: 0x7edeb6ebf383 - rustc_query_system[ab5481f6c869ba71]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e193fcc3be99e64a]::plumbing::QueryCtxt, false>
34: 0x7edeb6ebc779 - rustc_query_impl[e193fcc3be99e64a]::query_impl::explicit_implied_predicates_of::get_query_non_incr::__rust_end_short_backtrace
35: 0x7edeb74924f8 - rustc_middle[375bbde5f17fb8ea]::query::plumbing::query_get_at::>>
36: 0x7edeb6eaf1d6 - ::visit_item
37: 0x7edeb44360ed - rustc_hir_analysis[190a10ac9c7209da]::check::wfcheck::check_well_formed
38: 0x7edeb7039c69 - rustc_query_impl[e193fcc3be99e64a]::plumbing::__rust_begin_short_backtrace::>
39: 0x7edeb7039ef5 - rustc_query_system[ab5481f6c869ba71]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e193fcc3be99e64a]::plumbing::QueryCtxt, false>
40: 0x7edeb7039c46 - rustc_query_impl[e193fcc3be99e64a]::query_impl::check_well_formed::get_query_non_incr::__rust_end_short_backtrace
41: 0x7edeb703a90c - rustc_hir_analysis[190a10ac9c7209da]::check::wfcheck::check_mod_type_wf
42: 0x7edeb703a759 - rustc_query_impl[e193fcc3be99e64a]::plumbing::__rust_begin_short_backtrace::>
43: 0x7edeb7826778 - rustc_query_system[ab5481f6c869ba71]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e193fcc3be99e64a]::plumbing::QueryCtxt, false>
44: 0x7edeb7826527 - rustc_query_impl[e193fcc3be99e64a]::query_impl::check_mod_type_wf::get_query_non_incr::__rust_end_short_backtrace
45: 0x7edeb6c42523 - rustc_hir_analysis[190a10ac9c7209da]::check_crate
46: 0x7edeb7145455 - rustc_interface[ab25a569cec44e98]::passes::analysis
47: 0x7edeb7145015 - rustc_query_impl[e193fcc3be99e64a]::plumbing::__rust_begin_short_backtrace::>
48: 0x7edeb781c2e5 - rustc_query_system[ab5481f6c869ba71]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[e193fcc3be99e64a]::plumbing::QueryCtxt, false>
49: 0x7edeb781c04f - rustc_query_impl[e193fcc3be99e64a]::query_impl::analysis::get_query_non_incr::__rust_end_short_backtrace
50: 0x7edeb775037f - rustc_interface[ab25a569cec44e98]::interface::run_compiler::, rustc_driver_impl[b3016c550210facb]::run_compiler::{closure#0}>::{closure#1}
51: 0x7edeb76dc649 - std[ee1287dda0decb26]::sys::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[b3016c550210facb]::run_compiler::{closure#0}>::{closure#1}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>::{closure#0}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>
52: 0x7edeb76dc3fa - <::spawn_unchecked_, rustc_driver_impl[b3016c550210facb]::run_compiler::{closure#0}>::{closure#1}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>::{closure#0}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[a458eee17fffdec1]::result::Result<(), rustc_span[a32535cd2922901f]::ErrorGuaranteed>>::{closure#2} as core[a458eee17fffdec1]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
53: 0x7edeb8e9010b - as core::ops::function::FnOnce>::call_once::hc6d49d49179bb535
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/alloc/src/boxed.rs:2064:9
54: 0x7edeb8e9010b - as core::ops::function::FnOnce>::call_once::h7270f16d3abba4aa
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/alloc/src/boxed.rs:2064:9
55: 0x7edeb8e9010b - std::sys::pal::unix::thread::Thread::new::thread_start::h3929f25d671aa35f
at /rustc/ba1d7f4a083e6402679105115ded645512a7aea8/library/std/src/sys/pal/unix/thread.rs:108:17
56: 0x7edeb20a6ded -
57: 0x7edeb212a0dc -
58: 0x0 -
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: please make sure that you have updated to the latest nightly
note: rustc 1.81.0-nightly (ba1d7f4a0 2024-06-29) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z crate-attr=feature(effects) -Z dump-mir-dir=dir
query stack during panic:
#0 [associated_type_for_effects] creating associated items for effects in `io`
#1 [explicit_implied_predicates_of] computing the implied predicates of `io`
end of query stack
error: aborting due to 6 previous errors; 2 warnings emitted
Some errors have detailed explanations: E0601, E0658.
For more information about an error, try `rustc --explain E0601`.
```
@rustbot label +F-effects