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
I am trying to write a macro where the input syntax is $a:ident <- $b:expr (unrelated to the old placement expression syntax). Rustfmt sees this as placement, decides to format the macro input as a placement expression, and hits an unimplemented!().
thread 'main' panicked at 'not yet implemented', tools/rustfmt/src/expr.rs:347:47note: Run with `RUST_BACKTRACE=1` for a backtrace.
If we don't want to implement formatting for actual placement expressions (#2743), at least inside of macro input rustfmt should let them go and not treat them as expressions at all.
The text was updated successfully, but these errors were encountered:
I am trying to write a macro where the input syntax is
$a:ident <- $b:expr
(unrelated to the old placement expression syntax). Rustfmt sees this as placement, decides to format the macro input as a placement expression, and hits anunimplemented!()
.If we don't want to implement formatting for actual placement expressions (#2743), at least inside of macro input rustfmt should let them go and not treat them as expressions at all.
The text was updated successfully, but these errors were encountered: