mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 20:43:03 +00:00
Remove defaultness from ImplItem.
This commit is contained in:
parent
b606d160c8
commit
3edfd5ec3d
@ -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 New Issue
Block a user