Skip to content

Commit c11573d

Browse files
committed
Rename impl_defaultness to defaultness
1 parent 1a5db18 commit c11573d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/missing_inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
105105
match tit_.kind {
106106
hir::TraitItemKind::Const(..) | hir::TraitItemKind::Type(..) => {},
107107
hir::TraitItemKind::Fn(..) => {
108-
if cx.tcx.impl_defaultness(tit.id.owner_id).has_value() {
108+
if cx.tcx.defaultness(tit.id.owner_id).has_value() {
109109
// trait method with default body needs inline in case
110110
// an impl is not provided
111111
let desc = "a default trait method";

0 commit comments

Comments
 (0)