You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No warning for unused function using impl Trait on beta and nightly #54754
Likely culprit is #53545 (cc @FelixMcFelix). It introduces a new reachability level to rustc (ReachableFromImplTrait), which marks any function with an impl Trait return type with that level. Maybe the level required by the lint to consider an item reachable needs to be higher than that?
Yeah, the likely fix for this is to create a query for lints that removes all levels under AccessLevel::Reachable, or manually strip the entries each time. The former probably makes more sense. I wasn't sure we'd need to do this at the time, it shouldn't take too long.
Activity
jonas-schievink commentedon Oct 2, 2018
This has appeared between 63d6649 and d41f21f (commits in that range).
Likely culprit is #53545 (cc @FelixMcFelix). It introduces a new reachability level to rustc (
ReachableFromImplTrait), which marks any function with animpl Traitreturn type with that level. Maybe the level required by the lint to consider an item reachable needs to be higher than that?FelixMcFelix commentedon Oct 4, 2018
Yeah, the likely fix for this is to create a query for lints that removes all levels under
AccessLevel::Reachable, or manually strip the entries each time. The former probably makes more sense. I wasn't sure we'd need to do this at the time, it shouldn't take too long.jonas-schievink commentedon Oct 4, 2018
I've implemented a more minimal fix at #54810. It should be safe to backport to beta, if this is wanted at all.
pnkfelix commentedon Oct 4, 2018
(assigning self just to make sure everything gets followed up on here)
pnkfelix commentedon Oct 4, 2018
tagged as P-high since it was a regression.