convert MIR to iterate over the bodies vector
This commit is contained in:
parent
a780fa3f67
commit
384f044d82
2 changed files with 7 additions and 21 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue