We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a5e3de + c11573d commit 5a8ec9bCopy full SHA for 5a8ec9b
clippy_lints/src/missing_inline.rs
@@ -105,7 +105,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
105
match tit_.kind {
106
hir::TraitItemKind::Const(..) | hir::TraitItemKind::Type(..) => {},
107
hir::TraitItemKind::Fn(..) => {
108
- if cx.tcx.impl_defaultness(tit.id.owner_id).has_value() {
+ if cx.tcx.defaultness(tit.id.owner_id).has_value() {
109
// trait method with default body needs inline in case
110
// an impl is not provided
111
let desc = "a default trait method";
0 commit comments