Closed
Description
snippet:
type A2 = dyn<for<> dyn>
Version information
rustc 1.76.0-nightly (d5fab3376 2023-12-02)
binary: rustc
commit-hash: d5fab33766917085588d9bb4fb9477776695d98b
commit-date: 2023-12-02
host: x86_64-unknown-linux-gnu
release: 1.76.0-nightly
LLVM version: 17.0.5
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
error: internal compiler error: the following error was constructed but not emitted
error: `for<...>` expected after `dyn`, not before
--> /tmp/icemaker_global_tempdir.R2OQl17p5B11/rustc_testrunner_tmpdir_reporting.u3XlxC55uIYK/mvce.rs:1:21
|
1 | type A2 = dyn<for<> dyn>
| ^^^
|
help: move `dyn` before the `for<...>`
|
1 - type A2 = dyn<for<> dyn>
1 + type A2 = dyn<dyn for<> >
|
thread 'rustc' panicked at compiler/rustc_errors/src/diagnostic_builder.rs:768:21:
error was constructed but not emitted
stack backtrace:
0: 0x7f9f8478b50c - std::backtrace_rs::backtrace::libunwind::trace::h479849121ff49a5d
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x7f9f8478b50c - std::backtrace_rs::backtrace::trace_unsynchronized::hc9644f16de94df45
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f9f8478b50c - std::sys_common::backtrace::_print_fmt::h10290334532192e1
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys_common/backtrace.rs:68:5
3: 0x7f9f8478b50c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1f3df53d81057b3e
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f9f847de540 - core::fmt::rt::Argument::fmt::hb8e319fcddae9a31
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/core/src/fmt/rt.rs:142:9
5: 0x7f9f847de540 - core::fmt::write::h80be9ea7045f640f
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/core/src/fmt/mod.rs:1120:17
6: 0x7f9f8477f36f - std::io::Write::write_fmt::h0522d22623a1843b
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/io/mod.rs:1810:15
7: 0x7f9f8478b2f4 - std::sys_common::backtrace::_print::h11954509d6d4a59e
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys_common/backtrace.rs:47:5
8: 0x7f9f8478b2f4 - std::sys_common::backtrace::print::h89028ceab4fa2c56
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys_common/backtrace.rs:34:9
9: 0x7f9f8478df87 - std::panicking::default_hook::{{closure}}::ha828cf6bd2b63731
10: 0x7f9f8478dcef - std::panicking::default_hook::h85bef85bc0f3798a
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/panicking.rs:292:9
11: 0x7f9f874f9490 - std[be0bda08bb484463]::panicking::update_hook::<alloc[5e2c4fa57d45c172]::boxed::Box<rustc_driver_impl[7a73365881d43582]::install_ice_hook::{closure#0}>>::{closure#0}
12: 0x7f9f8478e6c8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::he0dee972ea8e9cc9
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/alloc/src/boxed.rs:2021:9
13: 0x7f9f8478e6c8 - std::panicking::rust_panic_with_hook::he9727088864fdef9
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/panicking.rs:783:13
14: 0x7f9f8478e3e9 - std::panicking::begin_panic_handler::{{closure}}::h80b7e677079c8e55
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/panicking.rs:649:13
15: 0x7f9f8478b9d6 - std::sys_common::backtrace::__rust_end_short_backtrace::hd9049e8056407812
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys_common/backtrace.rs:171:18
16: 0x7f9f8478e182 - rust_begin_unwind
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/panicking.rs:645:5
17: 0x7f9f847dac15 - core::panicking::panic_fmt::h97f53bcafbf77918
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/core/src/panicking.rs:72:14
18: 0x7f9f88e129e9 - <rustc_errors[d85cd907ae34f40d]::diagnostic_builder::DiagnosticBuilderInner as core[9199d425737c1d72]::ops::drop::Drop>::drop
19: 0x7f9f88e12a16 - core[9199d425737c1d72]::ptr::drop_in_place::<rustc_errors[d85cd907ae34f40d]::diagnostic_builder::DiagnosticBuilderInner>
20: 0x7f9f892f7bc7 - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_ty_common
21: 0x7f9f88e0e556 - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_angle_args
22: 0x7f9f88beb37e - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_path_inner
23: 0x7f9f892eed18 - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_ty_common
24: 0x7f9f88eb7012 - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_item_kind
25: 0x7f9f88bf993f - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_item_common
26: 0x7f9f88bf6fec - <rustc_parse[e3a3cb118eb68122]::parser::Parser>::parse_mod
27: 0x7f9f89772350 - rustc_interface[2959b8b48a60afbe]::passes::parse
28: 0x7f9f897720ce - <rustc_interface[2959b8b48a60afbe]::queries::Queries>::parse
29: 0x7f9f89768de5 - rustc_interface[2959b8b48a60afbe]::interface::run_compiler::<core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>, rustc_driver_impl[7a73365881d43582]::run_compiler::{closure#0}>::{closure#0}
30: 0x7f9f8975c411 - std[be0bda08bb484463]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[2959b8b48a60afbe]::util::run_in_thread_with_globals<rustc_interface[2959b8b48a60afbe]::util::run_in_thread_pool_with_globals<rustc_interface[2959b8b48a60afbe]::interface::run_compiler<core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>, rustc_driver_impl[7a73365881d43582]::run_compiler::{closure#0}>::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>
31: 0x7f9f8975c23b - <<std[be0bda08bb484463]::thread::Builder>::spawn_unchecked_<rustc_interface[2959b8b48a60afbe]::util::run_in_thread_with_globals<rustc_interface[2959b8b48a60afbe]::util::run_in_thread_pool_with_globals<rustc_interface[2959b8b48a60afbe]::interface::run_compiler<core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>, rustc_driver_impl[7a73365881d43582]::run_compiler::{closure#0}>::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[9199d425737c1d72]::result::Result<(), rustc_span[baba122c7922aac3]::ErrorGuaranteed>>::{closure#1} as core[9199d425737c1d72]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
32: 0x7f9f84798555 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h97e5c9d6b1622657
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/alloc/src/boxed.rs:2007:9
33: 0x7f9f84798555 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::hb5f6014336ba501b
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/alloc/src/boxed.rs:2007:9
34: 0x7f9f84798555 - std::sys::unix::thread::Thread::new::thread_start::h758e18463c2780d9
at /rustc/d5fab33766917085588d9bb4fb9477776695d98b/library/std/src/sys/unix/thread.rs:108:17
35: 0x7f9f845529eb - <unknown>
36: 0x7f9f845d67cc - <unknown>
37: 0x0 - <unknown>
error: 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.76.0-nightly (d5fab3376 2023-12-02) running on x86_64-unknown-linux-gnu
query stack during panic:
end of query stack
error: aborting due to 2 previous errors