]> git.lizzy.rs Git - rust.git/commit
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)
commit2fdb3559c47fbd2e9b959ce2080dc5eeec2554a9
tree1bec960c0de2ae5fbf16a048d1451f2ddd6f399b
parent6b94f4dccc8bd68ff407819fd51f2d62d9ca1ade
parentf922c8395d1cfc54c67cbd645f8456a13fb0189f
Rollup merge of #106805 - madsravn:master, r=compiler-errors

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.
compiler/rustc_parse_format/src/lib.rs