File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/ui-fulldeps/stable-mir Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,17 @@ extern crate rustc_interface;
1717extern crate rustc_middle;
1818extern crate stable_mir;
1919
20- use rustc_middle:: ty:: TyCtxt ;
2120use rustc_smir:: rustc_internal;
2221use std:: io:: Write ;
2322use std:: ops:: ControlFlow ;
2423
2524const CRATE_NAME : & str = "input" ;
2625
27- fn test_translation ( tcx : TyCtxt < ' _ > ) -> ControlFlow < ( ) > {
26+ fn test_translation ( ) -> ControlFlow < ( ) > {
2827 let main_fn = stable_mir:: entry_fn ( ) . unwrap ( ) ;
2928 let body = main_fn. expect_body ( ) ;
3029 let orig_ty = body. locals ( ) [ 0 ] . ty ;
31- let rustc_ty = rustc_internal:: internal ( tcx , & orig_ty) ;
30+ let rustc_ty = rustc_internal:: internal ( & orig_ty) ;
3231 assert ! ( rustc_ty. is_unit( ) ) ;
3332 ControlFlow :: Continue ( ( ) )
3433}
@@ -46,7 +45,7 @@ fn main() {
4645 CRATE_NAME . to_string ( ) ,
4746 path. to_string ( ) ,
4847 ] ;
49- run_with_tcx ! ( args, test_translation) . unwrap ( ) ;
48+ run ! ( args, test_translation) . unwrap ( ) ;
5049}
5150
5251fn generate_input ( path : & str ) -> std:: io:: Result < ( ) > {
You can’t perform that action at this time.
0 commit comments