Invalid span created when using format_args
with modified literal span and multibyte chars
#106191
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c9a64a485c010845e037c3f1fd2248ff
Or with a proc-macro:
boom.rs
broken.rs
$ rustc boom.rs --crate-type proc-macro
$ rustc broken.rs --extern boom=libboom.so
Meta
rustc --version --verbose
:Error output
Backtrace
After some local testing I added some code to validate that spans were created with their
lo
andhi
at char boundaries and got this:validate backtrace
The text was updated successfully, but these errors were encountered: