Skip to content

Commit bb5079b

Browse files
committed
rustup
1 parent 40cc726 commit bb5079b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#![feature(
2-
rustc_private,
3-
catch_expr,
4-
)]
1+
#![feature(rustc_private)]
52

63
#![cfg_attr(feature = "cargo-clippy", allow(cast_lossless))]
74

@@ -154,10 +151,10 @@ pub fn eval_main<'a, 'tcx: 'a>(
154151
) {
155152
let mut ecx = create_ecx(tcx, main_id, start_wrapper).expect("Couldn't create ecx");
156153

157-
let res: EvalResult = do catch {
154+
let res: EvalResult = (|| {
158155
ecx.run()?;
159-
ecx.run_tls_dtors()?;
160-
};
156+
ecx.run_tls_dtors()
157+
})();
161158

162159
match res {
163160
Ok(()) => {

tests/compile-fail/stack_limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(custom_attribute, attr_literals)]
1+
#![feature(custom_attribute)]
22
#![miri(stack_limit=16)]
33

44
//error-pattern: reached the configured maximum number of stack frames

0 commit comments

Comments
 (0)