Skip to content

Commit

Permalink
Rollup merge of #93746 - cjgillot:nodefii, r=nikomatsakis
Browse files Browse the repository at this point in the history
Remove defaultness from ImplItem.

This information is not really used anywhere, except HIR pretty-printing. This makes ImplItem and TraitItem more similar.
  • Loading branch information
JohnTitor committed Feb 9, 2022
2 parents 6987217 + 3edfd5e commit 5044e37
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clippy_lints/src/utils/inspector.rs
Expand Up @@ -54,9 +54,6 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
),
hir::VisibilityKind::Inherited => println!("visibility inherited from outer item"),
}
if item.defaultness.is_default() {
println!("default");
}
match item.kind {
hir::ImplItemKind::Const(_, body_id) => {
println!("associated constant");
Expand Down

0 comments on commit 5044e37

Please sign in to comment.