snafu icon indicating copy to clipboard operation
snafu copied to clipboard

Remove hand-rolled format shorthand when we drop support for Rust < 1.58

Open shepmaster opened this issue 6 months ago • 1 comments

write!(..., "{foo}") capturing foo stabilized in Rust 1.58. When we update MSRV past that, we can remove the code from the derive macro.

shepmaster avatar Jul 02 '25 18:07 shepmaster

Haha, Rust is too clever:

note: to avoid ambiguity, format_args! cannot capture variables when the format string is expanded from a macro

shepmaster avatar Dec 05 '25 18:12 shepmaster