Closed
Description
Code
note: it is crucial that between await (
and (move {
there is a tab and not a space
fn box () {
(( h (const {( default ( await ( await ( (move {await((((}}
Meta
rustc --version --verbose
:
rustc 1.67.0-nightly (32e613bba 2022-12-02)
binary: rustc
commit-hash: 32e613bbaafee1bcabba48a2257b838f8d1c03d3
commit-date: 2022-12-02
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4
Error output
rustc --edition=2021 <file>
<output>
Backtrace
thread 'rustc' panicked at 'assertion failed: self.lines.iter().all(|r| !r.iter().any(|sc| sc.chr == \'\\t\'))', compiler/rustc_errors/src/styled_buffer.rs:32:9
stack backtrace:
0: 0x7f2ec856476e - std::backtrace_rs::backtrace::libunwind::trace::h9e8eacd2eabf526f
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x7f2ec856476e - std::backtrace_rs::backtrace::trace_unsynchronized::hdde092c806c77301
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x7f2ec856476e - std::sys_common::backtrace::_print_fmt::h436d3f196368eca4
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:65:5
3: 0x7f2ec856476e - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h99c979908d285522
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:44:22
4: 0x7f2ec85ed4c8 - core::fmt::write::h1efe05f8990e10dd
at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/fmt/mod.rs:1208:17
5: 0x7f2ec85391ff - std::io::Write::write_fmt::hcf0d06405eaea471
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/io/mod.rs:1682:15
6: 0x7f2ec8564565 - std::sys_common::backtrace::_print::hd2382d70a4a87cf9
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:47:5
7: 0x7f2ec8564565 - std::sys_common::backtrace::print::h6cc4dd10bce64e47
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:34:9
8: 0x7f2ec8549bd7 - std::panicking::default_hook::{{closure}}::h05ca7f1b94484886
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:267:22
9: 0x7f2ec85498dc - std::panicking::default_hook::h4980d9d9510a271a
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:286:9
10: 0x7f2eca0ff072 - <alloc[c25fbbbd089b3a7d]::boxed::Box<dyn for<'a, 'b> core[54e86a843f8c5207]::ops::function::Fn<(&'a core[54e86a843f8c5207]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[54e86a843f8c5207]::marker::Sync + core[54e86a843f8c5207]::marker::Send> as core[54e86a843f8c5207]::ops::function::Fn<(&core[54e86a843f8c5207]::panic::panic_info::PanicInfo,)>>::call
at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2024:9
11: 0x7f2eca0ff072 - rustc_driver[f76888463961e21b]::DEFAULT_HOOK::{closure#0}::{closure#0}
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_driver/src/lib.rs:1202:13
12: 0x7f2ec854a68c - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd9404e2542de4ad1
at /home/matthias/vcs/github/rust_debug_assertions/library/alloc/src/boxed.rs:2024:9
13: 0x7f2ec854a68c - std::panicking::rust_panic_with_hook::hcb3a82bc5ebe4888
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:692:13
14: 0x7f2ec8564ab1 - std::panicking::begin_panic_handler::{{closure}}::hcbfedaff40f9a99b
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:577:13
15: 0x7f2ec85648be - std::sys_common::backtrace::__rust_end_short_backtrace::hd61dca5be05392f4
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/sys_common/backtrace.rs:137:18
16: 0x7f2ec854a132 - rust_begin_unwind
at /home/matthias/vcs/github/rust_debug_assertions/library/std/src/panicking.rs:575:5
17: 0x7f2ec85eba53 - core::panicking::panic_fmt::h43c239f62329fe2a
at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:64:14
18: 0x7f2ec85ebb2d - core::panicking::panic::hb85b1a8a10193b30
at /home/matthias/vcs/github/rust_debug_assertions/library/core/src/panicking.rs:111:5
19: 0x7f2ecd875708 - <rustc_errors[35f3f17f09ba1b6d]::styled_buffer::StyledBuffer>::render
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/styled_buffer.rs:32:9
20: 0x7f2ecd85f7d3 - <rustc_errors[35f3f17f09ba1b6d]::emitter::EmitterWriter>::emit_message_default
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/emitter.rs:1668:30
21: 0x7f2ecd855fe3 - <rustc_errors[35f3f17f09ba1b6d]::emitter::EmitterWriter>::emit_messages_default
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/emitter.rs:2000:15
22: 0x7f2ecd855fe3 - <rustc_errors[35f3f17f09ba1b6d]::emitter::EmitterWriter as rustc_errors[35f3f17f09ba1b6d]::emitter::Emitter>::emit_diagnostic
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/emitter.rs:551:9
23: 0x7f2ecd8f54db - <rustc_errors[35f3f17f09ba1b6d]::HandlerInner>::emit_diagnostic
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/lib.rs:1331:13
24: 0x7f2ecd8ef786 - <rustc_errors[35f3f17f09ba1b6d]::Handler>::emit_diagnostic
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/lib.rs:1093:9
25: 0x7f2ecd8ef786 - <rustc_errors[35f3f17f09ba1b6d]::ErrorGuaranteed as rustc_errors[35f3f17f09ba1b6d]::diagnostic_builder::EmissionGuarantee>::diagnostic_builder_emit_producing_guarantee
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic_builder.rs:168:28
26: 0x7f2eccd9bdb4 - <rustc_errors[35f3f17f09ba1b6d]::diagnostic_builder::DiagnosticBuilder<rustc_errors[35f3f17f09ba1b6d]::ErrorGuaranteed>>::emit
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_errors/src/diagnostic_builder.rs:399:9
27: 0x7f2eccd9bdb4 - <rustc_session[a15cfc1451fa042e]::parse::ParseSess>::emit_err::<rustc_parse[13981cc08bece951]::errors::IncorrectAwait>
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_session/src/parse.rs:346:9
28: 0x7f2ecccc3552 - <rustc_parse[13981cc08bece951]::parser::Parser>::error_on_incorrect_await
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/diagnostics.rs:1588:9
29: 0x7f2ecccc3552 - <rustc_parse[13981cc08bece951]::parser::Parser>::recover_incorrect_await_syntax
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/diagnostics.rs:1545:18
30: 0x7f2ecccdb7f7 - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_bottom_expr
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:1410:17
31: 0x7f2ecccdb7f7 - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_dot_or_call_expr::{closure#0}
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:940:24
32: 0x7f2ecccb259f - <rustc_parse[13981cc08bece951]::parser::Parser>::collect_tokens_for_expr::<<rustc_parse[13981cc08bece951]::parser::Parser>::parse_dot_or_call_expr::{closure#0}>::{closure#0}
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:3146:23
33: 0x7f2ecccb259f - <rustc_parse[13981cc08bece951]::parser::Parser>::collect_tokens_trailing_token::<rustc_ast[9914d275d891e42b]::ptr::P<rustc_ast[9914d275d891e42b]::ast::Expr>, <rustc_parse[13981cc08bece951]::parser::Parser>::collect_tokens_for_expr<<rustc_parse[13981cc08bece951]::parser::Parser>::parse_dot_or_call_expr::{closure#0}>::{closure#0}>
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/attr_wrapper.rs:214:23
34: 0x7f2ecccd5709 - <rustc_parse[13981cc08bece951]::parser::Parser>::collect_tokens_for_expr::<<rustc_parse[13981cc08bece951]::parser::Parser>::parse_dot_or_call_expr::{closure#0}>
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:3145:9
35: 0x7f2ecccd5709 - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_dot_or_call_expr
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:939:9
36: 0x7f2ecccd5709 - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_prefix_expr
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:617:25
37: 0x7f2ecccccd3c - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_assoc_expr_with
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:186:17
38: 0x7f2eccccc41d - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_assoc_expr
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:167:9
39: 0x7f2eccccc41d - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_expr_res::{closure#0}
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:155:33
40: 0x7f2eccccc41d - <rustc_parse[13981cc08bece951]::parser::Parser>::with_res::<core[54e86a843f8c5207]::result::Result<rustc_ast[9914d275d891e42b]::ptr::P<rustc_ast[9914d275d891e42b]::ast::Expr>, rustc_errors[35f3f17f09ba1b6d]::diagnostic_builder::DiagnosticBuilder<rustc_errors[35f3f17f09ba1b6d]::ErrorGuaranteed>>, <rustc_parse[13981cc08bece951]::parser::Parser>::parse_expr_res::{closure#0}>
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/mod.rs:1362:19
41: 0x7f2eccccc41d - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_expr_res
at /home/matthias/vcs/github/rust_debug_assertions/compiler/rustc_parse/src/parser/expr.rs:155:9
42: 0x7f2eccccc41d - <rustc_parse[13981cc08bece951]::parser::Parser>::parse_expr
[200 more lines]
Metadata
Metadata
Assignees
Labels
Area: The 2021 editionCategory: This is a bug.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Relevant to the compiler team, which will review and decide on the PR/issue.This issue requires a build of rustc or tooling with debug-assertions in some way