diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-02 18:12:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-02 18:12:45 +0200 |
| commit | 5a8ec9bbe7dd5fa936ad18925ed6d2e999e6f765 (patch) | |
| tree | 1cf3dd8bc71817311537cc6bdece4b7f8ebdb291 | |
| parent | 6a5e3de81257938a3cc46e37c2572e3f5de715cc (diff) | |
| parent | c11573d78c69459708967c28aec74a2e19947051 (diff) | |
| download | rust-5a8ec9bbe7dd5fa936ad18925ed6d2e999e6f765.tar.gz rust-5a8ec9bbe7dd5fa936ad18925ed6d2e999e6f765.zip | |
Rollup merge of #112165 - fee1-dead-contrib:rn-defualtness, r=compiler-errors
Rename `impl_defaultness` to `defaultness` Since this isn't just about the `impl`.
| -rw-r--r-- | clippy_lints/src/missing_inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/missing_inline.rs b/clippy_lints/src/missing_inline.rs index 5a459548153..a41d5a9ce8d 100644 --- a/clippy_lints/src/missing_inline.rs +++ b/clippy_lints/src/missing_inline.rs @@ -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"; |
