#![feature(rustc_attrs)]
+// ignore-pretty : (#23623) problems when ending with // comments
+
// check raw fat pointer ops in mir
// FIXME: please improve this when we get monomorphization support
}
}
-#[rustc_mir(graphviz="comparefoo.gv")]
+#[rustc_mir]
fn compare_foo<'a>(a: *const (Foo+'a), b: *const (Foo+'a)) -> ComparisonResults {
ComparisonResults {
lt: a < b,
}
}
-#[rustc_mir(graphviz="simpleeq.gv")]
+#[rustc_mir]
fn simple_eq<'a>(a: *const (Foo+'a), b: *const (Foo+'a)) -> bool {
let result = a == b;
result
struct S<T:?Sized>(u32, T);
+#[rustc_no_mir] // FIXME #27840 MIR can't do rvalue promotion yet.
fn main() {
let array = [0,1,2,3,4];
let array2 = [5,6,7,8,9];