f32/f64toParts in repl only

This commit is contained in:
Fabian Schmalzried 2024-03-16 14:41:20 +01:00
parent 64e9899cad
commit 473b8ef2d3
No known key found for this signature in database
GPG key ID: D691D5DA4CEF42E7
12 changed files with 72 additions and 6 deletions

View file

@ -1592,7 +1592,9 @@ fn low_level_no_rc(lowlevel: &LowLevel) -> RC {
| NumToFloatChecked
| NumCountLeadingZeroBits
| NumCountTrailingZeroBits
| NumCountOneBits => RC::NoRc,
| NumCountOneBits
| NumF32ToParts
| NumF64ToParts => RC::NoRc,
I128OfDec | NumWithoutDecimalPoint | NumWithDecimalPoint => RC::NoRc,
DictPseudoSeed => RC::NoRc,
StrStartsWith | StrEndsWith => RC::NoRc,

View file

@ -1347,7 +1347,9 @@ pub(crate) fn lowlevel_borrow_signature(op: LowLevel) -> &'static [Ownership] {
| NumCountOneBits
| I128OfDec
| NumWithoutDecimalPoint
| NumWithDecimalPoint => &[IRRELEVANT],
| NumWithDecimalPoint
| NumF32ToParts
| NumF64ToParts => &[IRRELEVANT],
StrStartsWith | StrEndsWith => &[BORROWED, BORROWED],
StrFromUtf8 => &[OWNED],
StrToUtf8 => &[OWNED],