mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Rollup merge of #93746 - cjgillot:nodefii, r=nikomatsakis
Remove defaultness from ImplItem. This information is not really used anywhere, except HIR pretty-printing. This makes ImplItem and TraitItem more similar.
This commit is contained in:
commit
5044e3769e
1 changed files with 0 additions and 3 deletions
|
@ -54,9 +54,6 @@ impl<'tcx> LateLintPass<'tcx> for DeepCodeInspector {
|
||||||
),
|
),
|
||||||
hir::VisibilityKind::Inherited => println!("visibility inherited from outer item"),
|
hir::VisibilityKind::Inherited => println!("visibility inherited from outer item"),
|
||||||
}
|
}
|
||||||
if item.defaultness.is_default() {
|
|
||||||
println!("default");
|
|
||||||
}
|
|
||||||
match item.kind {
|
match item.kind {
|
||||||
hir::ImplItemKind::Const(_, body_id) => {
|
hir::ImplItemKind::Const(_, body_id) => {
|
||||||
println!("associated constant");
|
println!("associated constant");
|
||||||
|
|
Loading…
Reference in a new issue