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
Lint bare_trait_objects doesn't warn on traits used as types in paths #65371
traitMethod{fnmethod(){}}traitTr{}implMethodforTr{}// warning: trait objects without an explicit `dyn` are deprecatedfnmain(){Tr::method;// No warning}
According to the logic of the lint there should be a suggestion to rewrite Tr::method as <dyn Tr>::method.
Activity
petrochenkov commentedon Mar 7, 2021
Fixed in #82868.
Auto merge of rust-lang#82868 - petrochenkov:bto, r=estebank