Nightly regression from stable - macro_rules macros collide with custom derive attributes #53898
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
On nightly, building https://github.com/Arnavion/derive-error-chain/tree/v0.11.1/derive-error-chain-tests fails with:
derive-error-chain
is a custom derive that registers an attribute namederror_chain
If the crate that uses the custom derive also has the regular
macro_rules
macro namederror_chain
from theerror-chain
crate in scope, it fails with that error.Stable 1.28 does not have this problem.
I mentioned this in #38356 (comment) and #38356 (comment). @alexcrichton responded to the second one that it would not be an acceptable regression. Since it fails now without needing to enable any features, I assume this is will regress stable eventually, hence I'm opening this issue.
The text was updated successfully, but these errors were encountered: