-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Derives can conflict with constants #49679
Comments
I first noticed the match cmp(...) {
Equal => ...
__cmp => __cmp
} This could be rewritten to do However there's no way at all of fixing the The reason we have the match bindings shadow error is #33118 (comment), which we hopefully can fix? cc @petrochenkov |
Note the difference between unhygienic old macros and hygienic new macros. |
This appears to be fixed (the binding names are now different, but those still don't cause conflicts, presumably because they're gensym'd, or whatever our equivalent to that is) |
(playpen)
With
__cmp
uncommented we get errors like:With
__self_0
uncommented we get errors like:This is basically because they generate matches on variables named
__cmp
and__self_#
and__arg_#_#
, and rustc doesn't like it when you conflict those with constants.The text was updated successfully, but these errors were encountered: