needless_return: do not lint on proc macros#15329
needless_return: do not lint on proc macros#15329blyxyas wants to merge 1 commit intorust-lang:masterfrom
needless_return: do not lint on proc macros#15329Conversation
|
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
|
@blyxyas I can't reproduce the problem on the current |
|
☔ The latest upstream changes (possibly 1d0582a) made this pull request unmergeable. Please resolve the merge conflicts. |
|
In #13464 I did pretty much the same change as this PR, adding So as far as I can tell, this change should have no effect, given that we now check from a proc macro twice? Or am I overlooking something? |
|
Either the upstream rustc is fixed, or Clippy is fixed. If we don’t have a minimal repro and the suspect was fixed, I think that we can fix the upstream issue as well. |
Due to the complexity of the issue and the simplicity of the fix, I'm not being able to reproduce it in the tests (I'm not even being able to reproduce to issue to begin with), but testing it on upstream rust, the panic no longer occurs.
fixes #15338
changelog:[
needless_return]: Do not run in proc macros.