-
-
Notifications
You must be signed in to change notification settings - Fork 32
chore: Bump required rust-toolchain version #949
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Bumps the required Rust nightly toolchain and adjusts unstable feature gates to align with newer compiler capabilities.
- Update nightly toolchain date (2025-02-22 -> 2025-06-26)
- Remove obsolete/unneeded feature gate slice_as_chunks
- Introduce new unstable feature gates (duration_constructors_lite, generic_const_exprs) and an expect attribute for incomplete_features
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
rust-toolchain.toml | Bumps nightly channel date to a newer toolchain. |
crates/simd-utils/src/lib.rs | Removes now-unneeded slice_as_chunks feature gate. |
crates/hyperion/src/lib.rs | Adds duration_constructors_lite unstable feature gate. |
crates/hyperion-proxy/src/lib.rs | Adds generic_const_exprs feature and expect attribute for incomplete features. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
I have not tested this much other that for my small, personal projects. There may be unknown side effects. |
Should we allow |
See hyperion-mc#949 (comment) "f32::midpoint generates more instructions, and float underflow/overflow isn't an issue we need to handle in general."
See hyperion-mc#949 (comment) "f32::midpoint generates more instructions, and float underflow/overflow isn't an issue we need to handle in general."
Addresses the follwing clippy error: ''' error: this `if` statement can be collapsed --> crates/hyperion-clap-macros/src/lib.rs:14:9 | 14 | / if attr.path().is_ident("command_permission") { 15 | | if let Err(err) = attr.parse_nested_meta(|meta| { 16 | | if meta.path.is_ident("group") { 17 | | if let Ok(Lit::Str(lit)) = meta.value()?.parse::<Lit>() { ... | 27 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if = note: `-D clippy::collapsible-if` implied by `-D clippy::style` = help: to override `-D clippy::style` add `#[allow(clippy::collapsible_if)]` help: collapse nested if block | 14 ~ if attr.path().is_ident("command_permission") 15 ~ && let Err(err) = attr.parse_nested_meta(|meta| { 16 | if meta.path.is_ident("group") { ... 25 | .into(); 26 ~ } | '''
Fixes clippy::io-other-error
Fixes clippy::borrow_as_ptr (https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr)
Use a newer rust-toolchain nightly version as some dependencies may require a higher MSRV