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
What is syn's policy on version support for these cases? IOW, does it need to be done conditionally based on whether the running rustc supports ..= in patterns?
Ah, good thought! I would be okay with either way. It would also be fine to make the behavior conditional later only if the simple change turns out to be disruptive.
At https://github.com/dtolnay/syn/blob/master/src/expr.rs#L3706,
...
is output even if the input was..=
in range patterns. It looks like this was decided on in #275.In rust-lang/rust#61342 the use of
...
was upgraded to a warn-by-default lint.Reproduction example:
The error is especially confusing because the
Span
is preserved.Discovered via rwf2/Rocket#1033.
The text was updated successfully, but these errors were encountered: