File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Rust MIR: a lowered representation of Rust.
20
20
#![feature(trusted_len)]
21
21
#![feature(trusted_step)]
22
22
#![feature(try_blocks)]
23
+ #![feature(yeet_expr)]
23
24
#![recursion_limit = "256"]
24
25
#![allow(rustc::potential_query_instability)]
25
26
Original file line number Diff line number Diff line change 58
58
#![feature(decl_macro)]
59
59
#![feature(drain_filter)]
60
60
#![feature(intra_doc_pointers)]
61
+ #![feature(yeet_expr)]
61
62
#![recursion_limit = "512"]
62
63
#![allow(rustc::potential_query_instability)]
63
64
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ macro_rules! err_machine_stop {
56
56
// In the `throw_*` macros, avoid `return` to make them work with `try {}`.
57
57
#[macro_export]
58
58
macro_rules! throw_unsup {
59
- ($($tt:tt)*) => { Err::<!, _>( err_unsup!($($tt)*))? };
59
+ ($($tt:tt)*) => { do yeet err_unsup!($($tt)*) };
60
60
}
61
61
62
62
#[macro_export]
@@ -66,12 +66,12 @@ macro_rules! throw_unsup_format {
66
66
67
67
#[macro_export]
68
68
macro_rules! throw_inval {
69
- ($($tt:tt)*) => { Err::<!, _>( err_inval!($($tt)*))? };
69
+ ($($tt:tt)*) => { do yeet err_inval!($($tt)*) };
70
70
}
71
71
72
72
#[macro_export]
73
73
macro_rules! throw_ub {
74
- ($($tt:tt)*) => { Err::<!, _>( err_ub!($($tt)*))? };
74
+ ($($tt:tt)*) => { do yeet err_ub!($($tt)*) };
75
75
}
76
76
77
77
#[macro_export]
@@ -81,12 +81,12 @@ macro_rules! throw_ub_format {
81
81
82
82
#[macro_export]
83
83
macro_rules! throw_exhaust {
84
- ($($tt:tt)*) => { Err::<!, _>( err_exhaust!($($tt)*))? };
84
+ ($($tt:tt)*) => { do yeet err_exhaust!($($tt)*) };
85
85
}
86
86
87
87
#[macro_export]
88
88
macro_rules! throw_machine_stop {
89
- ($($tt:tt)*) => { Err::<!, _>( err_machine_stop!($($tt)*))? };
89
+ ($($tt:tt)*) => { do yeet err_machine_stop!($($tt)*) };
90
90
}
91
91
92
92
mod allocation;
Original file line number Diff line number Diff line change 9
9
#![feature(option_get_or_insert_default)]
10
10
#![feature(trusted_step)]
11
11
#![feature(try_blocks)]
12
+ #![feature(yeet_expr)]
12
13
#![recursion_limit = "256"]
13
14
14
15
#[macro_use]
You can’t perform that action at this time.
0 commit comments