File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- #![ feature(
2
- rustc_private,
3
- catch_expr,
4
- ) ]
1
+ #![ feature( rustc_private) ]
5
2
6
3
#![ cfg_attr( feature = "cargo-clippy" , allow( cast_lossless) ) ]
7
4
@@ -154,10 +151,10 @@ pub fn eval_main<'a, 'tcx: 'a>(
154
151
) {
155
152
let mut ecx = create_ecx ( tcx, main_id, start_wrapper) . expect ( "Couldn't create ecx" ) ;
156
153
157
- let res: EvalResult = do catch {
154
+ let res: EvalResult = ( || {
158
155
ecx. run ( ) ?;
159
- ecx. run_tls_dtors ( ) ? ;
160
- } ;
156
+ ecx. run_tls_dtors ( )
157
+ } ) ( ) ;
161
158
162
159
match res {
163
160
Ok ( ( ) ) => {
Original file line number Diff line number Diff line change 1
- #![ feature( custom_attribute, attr_literals ) ]
1
+ #![ feature( custom_attribute) ]
2
2
#![ miri( stack_limit=16 ) ]
3
3
4
4
//error-pattern: reached the configured maximum number of stack frames
You can’t perform that action at this time.
0 commit comments