Skip to content

Commit 873248d

Browse files
cramertjbstrie
authored andcommitted
Remove unused adt_def access by constructor in typeck/collect
1 parent a212002 commit 873248d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc_typeck/collect.rs

-6
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,6 @@ fn adt_def<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
689689
let node_id = tcx.hir.as_local_node_id(def_id).unwrap();
690690
let item = match tcx.hir.get(node_id) {
691691
NodeItem(item) => item,
692-
693-
// Make adt definition available through constructor id as well.
694-
NodeStructCtor(_) => {
695-
return tcx.lookup_adt_def(tcx.hir.get_parent_did(node_id));
696-
}
697-
698692
_ => bug!()
699693
};
700694

0 commit comments

Comments
 (0)