File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,11 @@ fn test5(x: &Bar, a: isize) -> isize {
58
58
x. extension_method ( a)
59
59
}
60
60
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
+ }
71
66
72
67
trait One < T = Self > {
73
68
fn one ( ) -> T ;
@@ -119,8 +114,7 @@ fn main() {
119
114
assert_eq ! ( test3( & Foo , 42 ) , 42 ) ;
120
115
assert_eq ! ( test4( & Foo , 970 ) , 970 ) ;
121
116
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 ) ;
124
118
assert_eq ! ( test7( ) , 1 ) ;
125
119
assert_eq ! ( test8( ) , 2 ) ;
126
120
You can’t perform that action at this time.
0 commit comments