Skip to content

Conversation

ESHARK22
Copy link
Contributor

@ESHARK22 ESHARK22 commented Oct 1, 2025

Use a newer rust-toolchain nightly version as some dependencies may require a higher MSRV

@Copilot Copilot AI review requested due to automatic review settings October 1, 2025 16:14
@github-actions github-actions bot added the chore label Oct 1, 2025
Copy link

@Copilot Copilot AI left a 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.

@ESHARK22
Copy link
Contributor Author

ESHARK22 commented Oct 1, 2025

I have not tested this much other that for my small, personal projects. There may be unknown side effects.

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

❌ Patch coverage is 10.34483% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 22.39%. Comparing base (1f28877) to head (4b78935).

Files with missing lines Patch % Lines
crates/bvh-region/src/query/ray.rs 0.00% 2 Missing and 6 partials ⚠️
crates/hyperion-clap-macros/src/lib.rs 25.00% 0 Missing and 3 partials ⚠️
crates/hyperion/src/simulation/blocks/manager.rs 0.00% 3 Missing ⚠️
crates/hyperion-inventory/src/lib.rs 0.00% 2 Missing ⚠️
crates/hyperion-item/src/builder/book.rs 0.00% 2 Missing ⚠️
crates/hyperion/src/storage/buf.rs 0.00% 2 Missing ⚠️
tools/packet-inspector/src/app.rs 0.00% 2 Missing ⚠️
tools/packet-inspector/src/app/packet_list.rs 0.00% 2 Missing ⚠️
tools/packet-inspector/src/lib.rs 0.00% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main     #949      +/-   ##
==========================================
- Coverage   23.22%   22.39%   -0.84%     
==========================================
  Files         157      153       -4     
  Lines       15494    13674    -1820     
  Branches      486      506      +20     
==========================================
- Hits         3599     3062     -537     
+ Misses      11794    10511    -1283     
  Partials      101      101              
Files with missing lines Coverage Δ
crates/geometry/src/aabb.rs 67.30% <ø> (-0.96%) ⬇️
crates/hyperion-proxy/src/lib.rs 0.00% <ø> (ø)
crates/hyperion-utils/src/cached_save.rs 94.59% <100.00%> (-1.24%) ⬇️
crates/hyperion/src/common/config.rs 0.00% <ø> (ø)
crates/hyperion/src/lib.rs 54.20% <ø> (-2.83%) ⬇️
crates/hyperion/src/simulation/metadata/mod.rs 45.18% <100.00%> (-2.53%) ⬇️
crates/simd-utils/src/lib.rs 74.16% <ø> (-1.21%) ⬇️
tools/rust-mc-bot/src/packet_utils.rs 0.00% <ø> (ø)
crates/hyperion-inventory/src/lib.rs 0.00% <0.00%> (-1.18%) ⬇️
crates/hyperion-item/src/builder/book.rs 0.00% <0.00%> (ø)
... and 7 more

... and 122 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TestingPlant
Copy link
Collaborator

Should we allow clippy::manual_midpoint? f32::midpoint generates more instructions (https://rust.godbolt.org/z/53Ph5x979), and float underflow/overflow isn't an issue we need to handle in general.

ESHARK22 added a commit to ESHARK22/hyperion that referenced this pull request Oct 3, 2025
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 ~             }
   |
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants