]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #106805 - madsravn:master, r=compiler-errors
authorMatthias Krüger <matthias.krueger@famsik.de>
Fri, 3 Feb 2023 05:30:23 +0000 (06:30 +0100)
committerGitHub <noreply@github.com>
Fri, 3 Feb 2023 05:30:23 +0000 (06:30 +0100)
Suggest `{var:?}` when finding `{?:var}` in inline format strings

Link to issue: https://github.com/rust-lang/rust/issues/106572

This is my first PR to this project, so hopefully I can get some good pointers with me from the first PR.

Currently my idea was to test out whether or not this is the correct solution to this issue and then hopefully expand upon the idea to not only work for Debug formatting but for all of  them. If this is a valid solution, I will create a new issue to give a better error message to a broader range of wrong-order formatting.

1  2 
compiler/rustc_parse_format/src/lib.rs