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
Rollup merge of rust-lang#53545 - FelixMcFelix:fix-50865-beta, r=petrochenkov
Fixrust-lang#50865: ICE on impl-trait returning functions reaching private items
Adds a test case as suggested in rust-lang#50865, and implements @petrochenkov's suggestion. Fixesrust-lang#50865.
Impl-trait-returning functions are marked under a new (low) access level, which they propagate rather than `AccessLevels::Reachable`. `AccessLevels::is_reachable` returns false for such items (leaving stability analysis unaffected), these items may still be visible to the lints phase however.
0 commit comments