1 // Test incremental compilation tracking where we change field names
2 // in between revisions (hashing should be stable).
4 // revisions:rpass1 cfail2
5 // compile-flags: -Z query-dep-graph
6 // [cfail2] compile-flags: -Z query-dep-graph -Z assert-incr-state=loaded
8 #![feature(rustc_attrs)]
28 #[rustc_clean(except="typeck", cfg="cfail2")]
29 pub fn use_X() -> u32 {
30 let x: X = X { x: 22 };
31 //[cfail2]~^ ERROR struct `X` has no field named `x`
33 //[cfail2]~^ ERROR no field `x` on type `X`
36 #[rustc_clean(except="typeck", cfg="cfail2")]
37 pub fn use_EmbedX(embed: EmbedX) -> u32 {
39 //[cfail2]~^ ERROR no field `x` on type `X`
42 #[rustc_clean(cfg="cfail2")]
44 let x: Y = Y { y: 'c' };