File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ fn make_arithmetic_call(
408
408
use std:: convert:: TryInto ;
409
409
use ArithmeticOperation :: * ;
410
410
411
- let ch : char = kind. try_into ( ) ? ;
411
+ let ch : char = kind. try_into ( ) . expect ( "invalid char kind" ) ;
412
412
413
413
let nargs = {
414
414
match op {
@@ -874,7 +874,7 @@ fn make_compare(
874
874
) -> GeneralResult < Vec < Instruction > > {
875
875
use std:: convert:: TryInto ;
876
876
877
- let ch : char = kind. try_into ( ) ? ;
877
+ let ch : char = kind. try_into ( ) . expect ( "invalid char kind" ) ;
878
878
879
879
let ( gc, mut v) = sm. reserve_one ( ) ;
880
880
let n = match nans {
@@ -934,8 +934,8 @@ fn make_conversion(
934
934
Ok ( insns)
935
935
} ,
936
936
_ => {
937
- let ch_from : char = from. try_into ( ) ? ;
938
- let ch_to : char = to . try_into ( ) ? ;
937
+ let ch_from : char = from. try_into ( ) . expect ( "invalid char kind" ) ;
938
+ let ch_to : char = to . try_into ( ) . expect ( "invalid char kind" ) ;
939
939
let name = format ! ( "into_{}" , ch_to) ; // TODO improve naming
940
940
let desc = format ! ( "({}){}" , ch_from, ch_to) ;
941
941
Ok ( make_call ( sm, & make_builtin_name ( & name, & desc) , & desc) ?)
You can’t perform that action at this time.
0 commit comments