]> git.lizzy.rs Git - rust.git/commit
On fmt string with unescaped `{` note how to escape
authorEsteban Küber <esteban@kuber.com.ar>
Thu, 10 Nov 2016 20:48:55 +0000 (12:48 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Fri, 11 Nov 2016 18:53:02 +0000 (10:53 -0800)
commit3c17abc4d955080baa410e9b697bf5be37b0d079
tree531680cea42538c21e727d5ea930d850343862e6
parentda2ce2276873242a101f205537e7ce297d68f8dd
On fmt string with unescaped `{` note how to escape

On cases of malformed format strings where a `{` hasn't been properly
escaped, like `println!("{");`, present a note explaining how to escape
the `{` char.
src/libfmt_macros/lib.rs
src/libsyntax_ext/format.rs
src/test/ui/fmt/format-string-error.rs [new file with mode: 0644]
src/test/ui/fmt/format-string-error.stderr [new file with mode: 0644]