println!(), derive(Debug), derive(Clone), and probably many other macros break when using the elided_lifetimes_in_paths lint #51903
Labels
A-lifetimes
Area: Lifetimes / regions
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
in the latest stable compiler(1.27) (and probably earlier ones too) this snippet won't compile:
The issue is that the code is perfectly fine. The compilation errors come from the macros used:
The user of these macros + lint can't do anything to fix the errors. It seems as though at least some macro definitions in the standard library aren't ready for this lint yet.
See also #51902.
Note, the lint is still useful (actually helped me figure out some issues i had), but can't be left on because of these bugs.
The text was updated successfully, but these errors were encountered: