File tree 1 file changed +5
-5
lines changed
src/librustc/mir/interpret
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ macro_rules! err_exhaust {
49
49
// In the `throw_*` macros, avoid `return` to make them work with `try {}`.
50
50
#[ macro_export]
51
51
macro_rules! throw_unsup {
52
- ( $( $tt: tt) * ) => { Err ( err_unsup!( $( $tt) * ) ) ? } ;
52
+ ( $( $tt: tt) * ) => { Err :: <! , _> ( err_unsup!( $( $tt) * ) ) ? } ;
53
53
}
54
54
55
55
#[ macro_export]
@@ -59,12 +59,12 @@ macro_rules! throw_unsup_format {
59
59
60
60
#[ macro_export]
61
61
macro_rules! throw_inval {
62
- ( $( $tt: tt) * ) => { Err ( err_inval!( $( $tt) * ) ) ? } ;
62
+ ( $( $tt: tt) * ) => { Err :: <! , _> ( err_inval!( $( $tt) * ) ) ? } ;
63
63
}
64
64
65
65
#[ macro_export]
66
66
macro_rules! throw_ub {
67
- ( $( $tt: tt) * ) => { Err ( err_ub!( $( $tt) * ) ) ? } ;
67
+ ( $( $tt: tt) * ) => { Err :: <! , _> ( err_ub!( $( $tt) * ) ) ? } ;
68
68
}
69
69
70
70
#[ macro_export]
@@ -74,13 +74,13 @@ macro_rules! throw_ub_format {
74
74
75
75
#[ macro_export]
76
76
macro_rules! throw_exhaust {
77
- ( $( $tt: tt) * ) => { Err ( err_exhaust!( $( $tt) * ) ) ? } ;
77
+ ( $( $tt: tt) * ) => { Err :: <! , _> ( err_exhaust!( $( $tt) * ) ) ? } ;
78
78
}
79
79
80
80
#[ macro_export]
81
81
macro_rules! throw_machine_stop {
82
82
( $( $tt: tt) * ) => {
83
- Err ( $crate:: mir:: interpret:: InterpError :: MachineStop ( Box :: new( $( $tt) * ) ) ) ?
83
+ Err :: <! , _> ( $crate:: mir:: interpret:: InterpError :: MachineStop ( Box :: new( $( $tt) * ) ) ) ?
84
84
} ;
85
85
}
86
86
You can’t perform that action at this time.
0 commit comments