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
7 #![feature(rustc_attrs)]
27 #[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
28 pub fn use_X() -> u32 {
29 let x: X = X { x: 22 };
30 //[cfail2]~^ ERROR struct `X` has no field named `x`
32 //[cfail2]~^ ERROR no field `x` on type `X`
35 #[rustc_dirty(label="typeck_tables_of", cfg="cfail2")]
36 pub fn use_EmbedX(embed: EmbedX) -> u32 {
38 //[cfail2]~^ ERROR no field `x` on type `X`
41 #[rustc_clean(label="typeck_tables_of", cfg="cfail2")]
43 let x: Y = Y { y: 'c' };