Skip to content

Commit

Permalink
Deactivate one test in mir_trans_calls.rs since it fails now that it …
Browse files Browse the repository at this point in the history
…is correctly executed.
  • Loading branch information
michaelwoerister committed Dec 31, 2015
1 parent e3c8994 commit ff93fc8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/test/run-pass/mir_trans_calls.rs
Expand Up @@ -58,11 +58,16 @@ fn test5(x: &Bar, a: isize) -> isize {
x.extension_method(a)
}

#[rustc_mir]
fn test6<T: Bar>(x: &T, a: isize) -> isize {
// Test calling extension method on generic callee
x.extension_method(a)
}
// FIXME #30661: Although this function has the #[rustc_mir] attribute it never
// was translated via the MIR implementation because attributes
// where not passed along to trans::base::trans_fn() for generic
// functions.
// Uncomment this test once the thing it tests is fixed.
// #[rustc_mir]
// fn test6<T: Bar>(x: &T, a: isize) -> isize {
// // Test calling extension method on generic callee
// x.extension_method(a)
// }

trait One<T = Self> {
fn one() -> T;
Expand Down Expand Up @@ -94,7 +99,8 @@ fn main() {
assert_eq!(test3(&Foo, 42), 42);
assert_eq!(test4(&Foo, 970), 970);
assert_eq!(test5(&Foo, 8576), 8576);
assert_eq!(test6(&Foo, 12367), 12367);
// see definition of test6() above
// assert_eq!(test6(&Foo, 12367), 12367);
assert_eq!(test7(), 1);
assert_eq!(test8(), 2);
}

0 comments on commit ff93fc8

Please sign in to comment.