-
Notifications
You must be signed in to change notification settings - Fork 13.3k
OR_PATTERNS_BACK_COMPAT lint ignores crate boundaries #86567
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Looks like this is unrelated to the future incompatibility lint mechanism, but a bug with the or pattern lint specifically. It seems to trigger not only on the macro_rules definition, but also when such a definition is used. |
That seems somewhat related to #85709. Though that PR doesn't fix it. |
@inquisitivecrystal I'm going to take a look into this as part of #86330. Let me know if you've already started looking into this. |
This is fixed by #86574 |
I thought the problem was that the lint was being passed the wrong |
Code in main crate:
Crate
bar
:Result:
This lint should be suppressed, because it originates in another crate.
rustc --version
:rustc 1.55.0-nightly (6a758ea7e 2021-06-22)
The text was updated successfully, but these errors were encountered: