Fix test cases to reflect that #32014...went away

Not sure what was the bug. Fixes #32014.
This commit is contained in:
Niko Matsakis 2016-04-06 16:38:29 -04:00
parent 22b4bb051a
commit 54d78a46c5
2 changed files with 3 additions and 4 deletions

View File

@ -48,7 +48,6 @@ mod z {
#[rustc_dirty(label="TransCrateItem", cfg="cfail2")]
pub fn z() {
//[cfail2]~^ ERROR `TypeckItemBody("z::z")` found in dep graph, but should be dirty
// FIXME(#32014) -- TransCrateItem ought to be clean, but it is in fact
// dirty, hence we don't see an error here.
//[cfail2]~| ERROR `TransCrateItem("z::z")` found in dep graph, but should be dirty
}
}

View File

@ -41,7 +41,7 @@ mod y {
use x;
#[rustc_clean(label="TypeckItemBody", cfg="rpass2")]
#[rustc_dirty(label="TransCrateItem", cfg="rpass2")]
#[rustc_clean(label="TransCrateItem", cfg="rpass2")]
pub fn y() {
x::x();
}
@ -51,7 +51,7 @@ mod z {
use y;
#[rustc_clean(label="TypeckItemBody", cfg="rpass2")]
#[rustc_dirty(label="TransCrateItem", cfg="rpass2")]
#[rustc_clean(label="TransCrateItem", cfg="rpass2")]
pub fn z() {
y::y();
}