Skip to content

Commit 85ad0d9

Browse files
authored
Rollup merge of #150765 - ua/missing-colon, r=estebank
rustc_parse_format: improve error for missing `:` before `?` in format args Detect the `{ident?}` pattern where `?` is immediately followed by `}` and emit a clearer diagnostic explaining that `:` is required for Debug formatting. This avoids falling back to a generic “invalid format string” error and adds a targeted UI test for the case.
2 parents d2557fe + 11c0f63 commit 85ad0d9

0 file changed

File tree

    0 commit comments

    Comments
     (0)