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

Use more const functions. #2274

Closed
HaoYang670 opened this issue Aug 2, 2022 · 0 comments
Closed

Use more const functions. #2274

HaoYang670 opened this issue Aug 2, 2022 · 0 comments
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@HaoYang670
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As the const fn related features have been stabilized in rust 1.61: rust-lang/rust#93827, we could use more const functions in our code, such as the OffsetSizeTrait and some functions in Decimal.

Describe the solution you'd like
More constant folding is great!

Describe alternatives you've considered
We could not do this.

Additional context
(https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html#more-capabilities-for-const-fn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

No branches or pull requests

2 participants