You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: invalid format string: expected `'}'`, found `','`
--> src/date.rs:179:59
|
179 | unreachable!("passing both, --remove-if-{older,younger}-than was temporarily disabled!")
| - ^ expected `}` in format string
| |
| because of this opening brace
|
= note: if you intended to print `{`, you can escape it using `{{`
I'm not sure why this didn't pop up in the crater run for #93394 so made a ticket just in case, cc @m-ou-se
Feel free to close if this is a a true positive. :)
matthiaskrgr
changed the title
error in format string
error in format string : unreachable!("foo {bar, baz}"); no longer compiles
Feb 8, 2022
matthiaskrgr
changed the title
error in format string : unreachable!("foo {bar, baz}"); no longer compiles
error in format string : unreachable!("foo {bar,baz}"); no longer compiles
Feb 8, 2022
I tried this code:
I expected to see this happen:
This used to compile with edition 2018 and 2021 until
rustc 1.60.0-nightly (734368a20 2022-02-07)
Instead, this happened: (edition 2021)
https://github.com/matthiaskrgr/cargo-cache/blob/a9b9f30fe6726390288c2337663409adc666a8a3/src/date.rs#L179
I'm not sure why this didn't pop up in the crater run for #93394 so made a ticket just in case, cc @m-ou-se
Feel free to close if this is a a true positive. :)
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: