File tree 2 files changed +7
-1
lines changed
src/test/incremental/type_alias_cross_crate
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ pub type X = u32;
16
16
#[ cfg( rpass2) ]
17
17
pub type X = i32 ;
18
18
19
+ // this version doesn't actually change anything:
20
+ #[ cfg( rpass3) ]
21
+ pub type X = i32 ;
22
+
19
23
pub type Y = char ;
20
24
21
25
pub fn foo ( ) { }
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
// aux-build:a.rs
12
- // revisions:rpass1 rpass2
12
+ // revisions:rpass1 rpass2 rpass3
13
13
14
14
#![ feature( rustc_attrs) ]
15
15
16
16
extern crate a;
17
17
18
18
#[ rustc_dirty( label="TypeckItemBody" , cfg="rpass2" ) ]
19
+ #[ rustc_clean( label="TypeckItemBody" , cfg="rpass3" ) ]
19
20
pub fn use_X ( ) -> u32 {
20
21
let x: a:: X = 22 ;
21
22
x as u32
22
23
}
23
24
24
25
#[ rustc_clean( label="TypeckItemBody" , cfg="rpass2" ) ]
26
+ #[ rustc_clean( label="TypeckItemBody" , cfg="rpass3" ) ]
25
27
pub fn use_Y ( ) {
26
28
let x: a:: Y = 'c' ;
27
29
}
You can’t perform that action at this time.
0 commit comments