extend type alias test to include a clean rev
This commit is contained in:
parent
be1819f14b
commit
5dc6a058b2
2 changed files with 7 additions and 1 deletions
|
@ -16,4 +16,8 @@ pub type X = u32;
|
||||||
#[cfg(rpass2)]
|
#[cfg(rpass2)]
|
||||||
pub type X = i32;
|
pub type X = i32;
|
||||||
|
|
||||||
|
// this version doesn't actually change anything:
|
||||||
|
#[cfg(rpass3)]
|
||||||
|
pub type X = i32;
|
||||||
|
|
||||||
pub type Y = char;
|
pub type Y = char;
|
||||||
|
|
|
@ -9,19 +9,21 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
// aux-build:a.rs
|
// aux-build:a.rs
|
||||||
// revisions:rpass1 rpass2
|
// revisions:rpass1 rpass2 rpass3
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
|
||||||
extern crate a;
|
extern crate a;
|
||||||
|
|
||||||
#[rustc_dirty(label="TypeckItemBody", cfg="rpass2")]
|
#[rustc_dirty(label="TypeckItemBody", cfg="rpass2")]
|
||||||
|
#[rustc_clean(label="TypeckItemBody", cfg="rpass3")]
|
||||||
pub fn use_X() -> u32 {
|
pub fn use_X() -> u32 {
|
||||||
let x: a::X = 22;
|
let x: a::X = 22;
|
||||||
x as u32
|
x as u32
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustc_clean(label="TypeckItemBody", cfg="rpass2")]
|
#[rustc_clean(label="TypeckItemBody", cfg="rpass2")]
|
||||||
|
#[rustc_clean(label="TypeckItemBody", cfg="rpass3")]
|
||||||
pub fn use_Y() {
|
pub fn use_Y() {
|
||||||
let x: a::Y = 'c';
|
let x: a::Y = 'c';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue