ICE: 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', compiler/rustc_span/src/lib.rs:1573:17 #86085
Closed
Description
Code
fn main ( ) {
format ! ( concat ! ( r#"lJ�.�"# , "r} {}" ) ) ;
}
Meta
rustc --version --verbose
:
rustc 1.54.0-nightly (dbe459ded 2021-06-02)
binary: rustc
commit-hash: dbe459dedd33470f2cb28101157de316caaffa66
commit-date: 2021-06-02
host: x86_64-unknown-linux-gnu
release: 1.54.0-nightly
LLVM version: 12.0.1
Error output
thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', compiler/rustc_span/src/lib.rs:1573:17
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.54.0-nightly (dbe459ded 2021-06-02) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z mir-opt-level=3 -Z new-llvm-pass-manager=yes -Z unsound-mir-opts=yes -Z polonius=yes -Z polymorphize=yes -C debuginfo=2 -C opt-level=3 --crate-type staticlib
query stack during panic:
end of query stack
Backtrace
thread 'rustc' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', compiler/rustc_span/src/lib.rs:1573:17
stack backtrace:
0: rust_begin_unwind
at /rustc/dbe459dedd33470f2cb28101157de316caaffa66/library/std/src/panicking.rs:515:5
1: core::panicking::panic_fmt
at /rustc/dbe459dedd33470f2cb28101157de316caaffa66/library/core/src/panicking.rs:92:14
2: core::panicking::panic
at /rustc/dbe459dedd33470f2cb28101157de316caaffa66/library/core/src/panicking.rs:50:5
3: rustc_span::SourceFile::lookup_file_pos
4: rustc_span::SourceFile::lookup_file_pos_with_col_display
5: rustc_span::source_map::SourceMap::lookup_char_pos
6: rustc_errors::emitter::EmitterWriter::get_multispan_max_line_num
7: <rustc_errors::emitter::EmitterWriter as rustc_errors::emitter::Emitter>::emit_diagnostic
8: rustc_errors::HandlerInner::emit_diagnostic
9: rustc_errors::diagnostic_builder::DiagnosticBuilder::emit
10: rustc_builtin_macros::format::expand_preparsed_format_args
11: rustc_builtin_macros::format::expand_format_args_impl
12: rustc_expand::expand::MacroExpander::fully_expand_fragment
13: rustc_expand::expand::MacroExpander::expand_crate
14: rustc_interface::passes::configure_and_expand_inner
15: rustc_interface::passes::configure_and_expand::{{closure}}
16: rustc_data_structures::box_region::PinnedGenerator<I,A,R>::new
17: rustc_interface::passes::configure_and_expand
18: rustc_interface::queries::Queries::expansion
19: rustc_span::with_session_globals
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose 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.54.0-nightly (dbe459ded 2021-06-02) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z mir-opt-level=3 -Z new-llvm-pass-manager=yes -Z unsound-mir-opts=yes -Z polonius=yes -Z polymorphize=yes -C debuginfo=2 -C opt-level=3 --crate-type staticlib
query stack during panic:
end of query stack