This repository was archived by the owner on May 28, 2025. It is now read-only.
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.
2020#![ feature( trusted_len) ]
2121#![ feature( trusted_step) ]
2222#![ feature( try_blocks) ]
23+ #![ feature( yeet_expr) ]
2324#![ recursion_limit = "256" ]
2425#![ allow( rustc:: potential_query_instability) ]
2526
Original file line number Diff line number Diff line change 5858#![ feature( decl_macro) ]
5959#![ feature( drain_filter) ]
6060#![ feature( intra_doc_pointers) ]
61+ #![ feature( yeet_expr) ]
6162#![ recursion_limit = "512" ]
6263#![ allow( rustc:: potential_query_instability) ]
6364
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ macro_rules! err_machine_stop {
5656// In the `throw_*` macros, avoid `return` to make them work with `try {}`.
5757#[ macro_export]
5858macro_rules! throw_unsup {
59- ( $( $tt: tt) * ) => { Err :: <! , _> ( err_unsup!( $( $tt) * ) ) ? } ;
59+ ( $( $tt: tt) * ) => { do yeet err_unsup!( $( $tt) * ) } ;
6060}
6161
6262#[ macro_export]
@@ -66,12 +66,12 @@ macro_rules! throw_unsup_format {
6666
6767#[ macro_export]
6868macro_rules! throw_inval {
69- ( $( $tt: tt) * ) => { Err :: <! , _> ( err_inval!( $( $tt) * ) ) ? } ;
69+ ( $( $tt: tt) * ) => { do yeet err_inval!( $( $tt) * ) } ;
7070}
7171
7272#[ macro_export]
7373macro_rules! throw_ub {
74- ( $( $tt: tt) * ) => { Err :: <! , _> ( err_ub!( $( $tt) * ) ) ? } ;
74+ ( $( $tt: tt) * ) => { do yeet err_ub!( $( $tt) * ) } ;
7575}
7676
7777#[ macro_export]
@@ -81,12 +81,12 @@ macro_rules! throw_ub_format {
8181
8282#[ macro_export]
8383macro_rules! throw_exhaust {
84- ( $( $tt: tt) * ) => { Err :: <! , _> ( err_exhaust!( $( $tt) * ) ) ? } ;
84+ ( $( $tt: tt) * ) => { do yeet err_exhaust!( $( $tt) * ) } ;
8585}
8686
8787#[ macro_export]
8888macro_rules! throw_machine_stop {
89- ( $( $tt: tt) * ) => { Err :: <! , _> ( err_machine_stop!( $( $tt) * ) ) ? } ;
89+ ( $( $tt: tt) * ) => { do yeet err_machine_stop!( $( $tt) * ) } ;
9090}
9191
9292mod allocation;
Original file line number Diff line number Diff line change 99#![ feature( option_get_or_insert_default) ]
1010#![ feature( trusted_step) ]
1111#![ feature( try_blocks) ]
12+ #![ feature( yeet_expr) ]
1213#![ recursion_limit = "256" ]
1314
1415#[ macro_use]
You can’t perform that action at this time.
0 commit comments