Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename math functions to strict_add/strict_sub #2107

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

webmaster128
Copy link
Member

Turns out the Rust standard library add the functions from #2098 under a different name. See rust-lang/rust#118260. Since this was not yet release, we can use those names too.

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, didn't know about these in Rust std

@webmaster128 webmaster128 merged commit 3b59561 into main Apr 11, 2024
30 checks passed
@webmaster128 webmaster128 deleted the rename-to-strict_ branch April 11, 2024 22:04
@webmaster128
Copy link
Member Author

@mergify backport release/2.0 release/1.5 release/1.4

Copy link
Contributor

mergify bot commented Apr 11, 2024

backport release/2.0 release/1.5 release/1.4

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Apr 11, 2024
(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Apr 11, 2024
(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Apr 11, 2024
(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md
#	packages/std/src/math/uint128.rs
#	packages/std/src/math/uint256.rs
#	packages/std/src/math/uint512.rs
#	packages/std/src/math/uint64.rs
webmaster128 added a commit that referenced this pull request Apr 15, 2024
* Rename math functions to strict_add/strict_sub (#2107)

(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md
#	packages/std/src/math/uint128.rs
#	packages/std/src/math/uint256.rs
#	packages/std/src/math/uint512.rs
#	packages/std/src/math/uint64.rs

* Fix test code from merge

* Fix CHANGELOG

---------

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <simon@warta.it>
webmaster128 added a commit that referenced this pull request Apr 15, 2024
* Rename math functions to strict_add/strict_sub (#2107)

(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md

* Fix CHANGELOG

---------

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <simon@warta.it>
webmaster128 added a commit that referenced this pull request Apr 15, 2024
* Rename math functions to strict_add/strict_sub (#2107)

(cherry picked from commit 3b59561)

# Conflicts:
#	CHANGELOG.md

* Fix CHANGELOG

* Add ### Changed section to Unreleased CHANGELOG

---------

Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <simon@warta.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants