Closed
Description
The following code produces an incorrect span on nightly:
fn main() {
format!("{\x7D");
}
Expected:
error: 1 positional argument in format string, but no arguments were given
--> src/main.rs:2:14
|
2 | format!("{\x7D");
| ^^^^^
error: aborting due to previous error
Actual:
error: 1 positional argument in format string, but no arguments were given
--> src/main.rs:2:14
|
2 | format!("{\x7D");
| ^^
error: aborting due to previous error
Meta
rustc --version --verbose
:
rustc 1.67.0-nightly (95a3a7277 2022-10-31)
binary: rustc
commit-hash: 95a3a7277b44bbd2dd3485703d9a05f64652b60e
commit-date: 2022-10-31
host: x86_64-unknown-linux-gnu
release: 1.67.0-nightly
LLVM version: 15.0.4
This was knowingly introduced as part of #102214. I have already fixed this, and will open a PR shortly.