@@ -302,7 +302,6 @@ impl<'hir> Map<'hir> {
302302 | Node::Infer(_)
303303 | Node::TraitRef(_)
304304 | Node::Pat(_)
305- | Node::Binding(_)
306305 | Node::Local(_)
307306 | Node::Param(_)
308307 | Node::Arm(_)
@@ -901,7 +900,7 @@ impl<'hir> Map<'hir> {
901900 #[inline]
902901 fn opt_ident(self, id: HirId) -> Option<Ident> {
903902 match self.get(id) {
904- Node::Binding (&Pat { kind: PatKind::Binding(_, _, ident, _), .. }) => Some(ident),
903+ Node::Pat (&Pat { kind: PatKind::Binding(_, _, ident, _), .. }) => Some(ident),
905904 // A `Ctor` doesn't have an identifier itself, but its parent
906905 // struct/variant does. Compare with `hir::Map::opt_span`.
907906 Node::Ctor(..) => match self.find(self.get_parent_node(id))? {
@@ -969,7 +968,6 @@ impl<'hir> Map<'hir> {
969968 Node::Ty(ty) => ty.span,
970969 Node::TypeBinding(tb) => tb.span,
971970 Node::TraitRef(tr) => tr.path.span,
972- Node::Binding(pat) => pat.span,
973971 Node::Pat(pat) => pat.span,
974972 Node::Arm(arm) => arm.span,
975973 Node::Block(block) => block.span,
@@ -1203,7 +1201,6 @@ fn hir_id_to_string(map: Map<'_>, id: HirId) -> String {
12031201 Some(Node::Ty(_)) => node_str("type"),
12041202 Some(Node::TypeBinding(_)) => node_str("type binding"),
12051203 Some(Node::TraitRef(_)) => node_str("trait ref"),
1206- Some(Node::Binding(_)) => node_str("local"),
12071204 Some(Node::Pat(_)) => node_str("pat"),
12081205 Some(Node::Param(_)) => node_str("param"),
12091206 Some(Node::Arm(_)) => node_str("arm"),
0 commit comments