Skip to content

Commit 9039085

Browse files
committed
Reenable MIR test
Fixes #30674
1 parent 21b025f commit 9039085

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/test/run-pass/mir_trans_calls.rs

+6-12
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,11 @@ fn test5(x: &Bar, a: isize) -> isize {
5858
x.extension_method(a)
5959
}
6060

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

7267
trait One<T = Self> {
7368
fn one() -> T;
@@ -119,8 +114,7 @@ fn main() {
119114
assert_eq!(test3(&Foo, 42), 42);
120115
assert_eq!(test4(&Foo, 970), 970);
121116
assert_eq!(test5(&Foo, 8576), 8576);
122-
// see definition of test6() above
123-
// assert_eq!(test6(&Foo, 12367), 12367);
117+
assert_eq!(test6(&Foo, 12367), 12367);
124118
assert_eq!(test7(), 1);
125119
assert_eq!(test8(), 2);
126120

0 commit comments

Comments
 (0)