]> git.lizzy.rs Git - rust.git/blob - tests/incremental/hello_world.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / incremental / hello_world.rs
1 // revisions: rpass1 rpass2
2 // compile-flags: -Z query-dep-graph
3
4 #![allow(warnings)]
5 #![feature(rustc_attrs)]
6
7 fn main() { }
8
9 mod x {
10     #[cfg(rpass1)]
11     pub fn xxxx() -> i32 {
12         1
13     }
14
15     #[cfg(rpass2)]
16     pub fn xxxx() -> i32 {
17         2
18     }
19 }
20
21 mod y {
22     use x;
23
24     #[rustc_clean(cfg="rpass2")]
25     pub fn yyyy() {
26         x::xxxx();
27     }
28 }
29
30 mod z {
31     use y;
32
33     #[rustc_clean(cfg="rpass2")]
34     pub fn z() {
35         y::yyyy();
36     }
37 }