summaryrefslogtreecommitdiffstats
path: root/tests/incremental/change_crate_order/main.rs
blob: 7448b54dd079c4870172f4b3ad874d13520caac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// aux-build:a.rs
// aux-build:b.rs
// revisions:rpass1 rpass2

#![feature(rustc_attrs)]


#[cfg(rpass1)]
extern crate a;
#[cfg(rpass1)]
extern crate b;

#[cfg(rpass2)]
extern crate b;
#[cfg(rpass2)]
extern crate a;

use a::A;
use b::B;

//? #[rustc_clean(label="typeck", cfg="rpass2")]
pub fn main() {
    A + B;
}