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
A-lintArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-langRelevant to the language team, which will review and decide on the PR/issue.
traitMyThing{fndo_stuff(&self) -> bool;fndo_other_stuff(&self) -> bool;}structOther{}implMyThingforOther{fndo_stuff(&self) -> bool{true}fndo_other_stuff(&self) -> bool{true}}fnmain(){let thing = Other{};
thing.do_stuff();// NOTE: We never call `do_other_stuff`.}
Even though we never call do_other_stuff, the compiler does not generate a warning that this trait method is unused. We've defined an implementation for it, but this doesn't mean that the method is used.
Apologies if this issue has already been raised.
The text was updated successfully, but these errors were encountered:
A-lintArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-langRelevant to the language team, which will review and decide on the PR/issue.
Take this example code.
Even though we never call
do_other_stuff
, the compiler does not generate a warning that this trait method is unused. We've defined an implementation for it, but this doesn't mean that the method is used.Apologies if this issue has already been raised.
The text was updated successfully, but these errors were encountered: