You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of rust-lang#81828 - davidhewitt:capture-raw-format-strings, r=estebank
parse_format: treat r" as a literal
This PR changes `format_args!` internal parsing machinery to treat raw strings starting `r"` as a literal.
Currently `"` and `r#` are recognised as valid starting combinations for string literals, but `r"` is not.
This was noticed when debugging rust-lang#67984 (comment)
As well as fixing the behavior observed in that comment, this improves diagnostic spans for `r"` formatting strings.
0 commit comments