-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix span calculation on secondary_label as well
- Loading branch information
1 parent
e2116ac
commit 99bd24e
Showing
3 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
fn main() { | ||
let _ = format!(concat!("{0}𝖳𝖾𝗌𝗍{"), i); | ||
//~^ ERROR: invalid format string: expected `'}'` but string was terminated | ||
//~| NOTE: if you intended to print `{`, you can escape it using `{{` | ||
//~| NOTE: in this expansion of concat! | ||
//~| NOTE: in this expansion of concat! | ||
//~| NOTE: expected `'}'` in format string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
error: invalid format string: expected `'}'` but string was terminated | ||
--> $DIR/issue-91556.rs:2:19 | ||
| | ||
LL | let _ = format!(concat!("{0}𝖳𝖾𝗌𝗍{"), i); | ||
| ^^^^^^^^^^^^^^^^^^^ expected `'}'` in format string | ||
| | ||
= note: if you intended to print `{`, you can escape it using `{{` | ||
= note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to previous error | ||
|