Skip to content

Commit 5a8ec9b

Browse files
authored
Rollup merge of rust-lang#112165 - fee1-dead-contrib:rn-defualtness, r=compiler-errors
Rename `impl_defaultness` to `defaultness` Since this isn't just about the `impl`.
2 parents 6a5e3de + c11573d commit 5a8ec9b

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)