File tree 1 file changed +3
-4
lines changed
tests/ui-fulldeps/stable-mir
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;
17
17
extern crate rustc_middle;
18
18
extern crate stable_mir;
19
19
20
- use rustc_middle:: ty:: TyCtxt ;
21
20
use rustc_smir:: rustc_internal;
22
21
use std:: io:: Write ;
23
22
use std:: ops:: ControlFlow ;
24
23
25
24
const CRATE_NAME : & str = "input" ;
26
25
27
- fn test_translation ( tcx : TyCtxt < ' _ > ) -> ControlFlow < ( ) > {
26
+ fn test_translation ( ) -> ControlFlow < ( ) > {
28
27
let main_fn = stable_mir:: entry_fn ( ) . unwrap ( ) ;
29
28
let body = main_fn. expect_body ( ) ;
30
29
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) ;
32
31
assert ! ( rustc_ty. is_unit( ) ) ;
33
32
ControlFlow :: Continue ( ( ) )
34
33
}
@@ -46,7 +45,7 @@ fn main() {
46
45
CRATE_NAME . to_string ( ) ,
47
46
path. to_string ( ) ,
48
47
] ;
49
- run_with_tcx ! ( args, test_translation) . unwrap ( ) ;
48
+ run ! ( args, test_translation) . unwrap ( ) ;
50
49
}
51
50
52
51
fn generate_input ( path : & str ) -> std:: io:: Result < ( ) > {
You can’t perform that action at this time.
0 commit comments