]> git.lizzy.rs Git - rust.git/commit
Use an exhaustive match in `Node::ident()` and add docs
authorNoah Lev <camelidcamel@gmail.com>
Wed, 18 Aug 2021 23:09:52 +0000 (16:09 -0700)
committerNoah Lev <camelidcamel@gmail.com>
Sat, 21 Aug 2021 23:15:09 +0000 (16:15 -0700)
commit02ed23c0318da7f1125f01b5437ae9e809587f0c
tree05a3fa23913d6502dc9028b794bb27aee267c4bf
parent0fa3b4f940b4705dc5a1089e917f521b093fd0bc
Use an exhaustive match in `Node::ident()` and add docs

This should cause a compiler error in the future if more variants are
added without `Node::ident()` being updated.
compiler/rustc_hir/src/hir.rs