convert MIR to iterate over the bodies vector

This commit is contained in:
Niko Matsakis 2017-02-28 12:32:54 -05:00
parent a780fa3f67
commit 384f044d82
2 changed files with 7 additions and 21 deletions

View file

@ -89,6 +89,7 @@ pub enum DepNode<D: Clone + Debug> {
// Represents the MIR for a fn; also used as the task node for
// things read/modify that MIR.
MirKrate,
Mir(D),
BorrowCheckKrate,
@ -212,6 +213,7 @@ impl<D: Clone + Debug> DepNode<D> {
match *self {
Krate => Some(Krate),
BorrowCheckKrate => Some(BorrowCheckKrate),
MirKrate => Some(MirKrate),
TypeckBodiesKrate => Some(TypeckBodiesKrate),
CollectLanguageItems => Some(CollectLanguageItems),
CheckStaticRecursion => Some(CheckStaticRecursion),