Merge pull request #2472 from rtfeldman/add_Int.toInt_builtins

Add `{Int *}.to{Int *}` builtins
This commit is contained in:
Brendan Hansknecht 2022-02-21 18:03:14 +00:00 committed by GitHub
commit 74daec84df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 929 additions and 21 deletions

View file

@ -984,7 +984,7 @@ pub fn lowlevel_borrow_signature(arena: &Bump, op: LowLevel) -> &[bool] {
NumToStr | NumAbs | NumNeg | NumSin | NumCos | NumSqrtUnchecked | NumLogUnchecked
| NumRound | NumCeiling | NumFloor | NumToFloat | Not | NumIsFinite | NumAtan | NumAcos
| NumAsin | NumIntCast => arena.alloc_slice_copy(&[irrelevant]),
| NumAsin | NumIntCast | NumToIntChecked => arena.alloc_slice_copy(&[irrelevant]),
NumBytesToU16 => arena.alloc_slice_copy(&[borrowed, irrelevant]),
NumBytesToU32 => arena.alloc_slice_copy(&[borrowed, irrelevant]),
StrStartsWith | StrEndsWith => arena.alloc_slice_copy(&[owned, borrowed]),