-
Notifications
You must be signed in to change notification settings - Fork 13.9k
On fmt string with unescaped { note how to escape
#37695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
|
Awesome, thanks! Could you be sure to add a ui test for this case as well? |
21233aa to
1631a5c
Compare
|
@alexcrichton added NOTE for |
|
@bors: r+ Thanks! |
|
📌 Commit 1631a5c has been approved by |
src/libfmt_macros/lib.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"can you" -> "you can"
src/libfmt_macros/lib.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. "can you" -> "you can"
|
@bors: r- (waiting for changes) |
On cases of malformed format strings where a `{` hasn't been properly
escaped, like `println!("{");`, present a note explaining how to escape
the `{` char.
1631a5c to
3c17abc
Compare
|
@brson @alexcrichton fixed. |
|
@bors: r+ |
|
📌 Commit 3c17abc has been approved by |
…chton
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.
Fix rust-lang#34300.
…chton
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.
Fix rust-lang#34300.
Rollup of 30 pull requests - Successful merges: #37190, #37368, #37481, #37503, #37527, #37535, #37551, #37584, #37600, #37613, #37615, #37659, #37662, #37669, #37682, #37688, #37690, #37692, #37693, #37694, #37695, #37696, #37698, #37699, #37705, #37708, #37709, #37716, #37724, #37727 - Failed merges: #37640, #37689, #37717
On cases of malformed format strings where a
{hasn't been properly escaped, likeprintln!("{");, present a NOTE explaining how to escape the{char.Fix #34300.