Skip to content

Commit

Permalink
Rollup merge of rust-lang#112165 - fee1-dead-contrib:rn-defualtness, …
Browse files Browse the repository at this point in the history
…r=compiler-errors

Rename `impl_defaultness` to `defaultness`

Since this isn't just about the `impl`.
  • Loading branch information
matthiaskrgr committed Jun 2, 2023
2 parents 6a5e3de + c11573d commit 5a8ec9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/missing_inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<'tcx> LateLintPass<'tcx> for MissingInline {
match tit_.kind {
hir::TraitItemKind::Const(..) | hir::TraitItemKind::Type(..) => {},
hir::TraitItemKind::Fn(..) => {
if cx.tcx.impl_defaultness(tit.id.owner_id).has_value() {
if cx.tcx.defaultness(tit.id.owner_id).has_value() {
// trait method with default body needs inline in case
// an impl is not provided
let desc = "a default trait method";
Expand Down

0 comments on commit 5a8ec9b

Please sign in to comment.