Skip to content

Conversation

@lisongqian
Copy link
Contributor

@lisongqian lisongqian commented Aug 6, 2025

This patch fixes clippy issues from rustc 1.90.0-beta.1 (788da80fc 2025-08-04) and bump MSRV to 1.87.0 since rustc 1.90.0-beta.1 suggests using the library feature unsigned_is_multiple_of. It is stable in Rust 1.87.0.

Signed-off-by: Songqian Li [email protected]

@lisongqian lisongqian requested a review from a team as a code owner August 6, 2025 09:07
@lisongqian lisongqian changed the title misc: Fix beta clippy issues misc: Fix beta clippy issues & Bump MSRV to 1.87.0 Aug 6, 2025
@lisongqian lisongqian force-pushed the fix-beta-clippy branch 2 times, most recently from e2cb545 to 3cefdd7 Compare August 6, 2025 10:00
Copy link
Member

@likebreath likebreath left a comment

Choose a reason for hiding this comment

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

@lisongqian Thank you for fixing the clippy issues. Overall looks good to me. Few legit issues being caught by the CI workers.

For risc-v worker, I guess the reason is that we only test on MSRV, and issues will only be reported with MSRV bump.

   --> arch/src/riscv64/fdt.rs:451:31
    |
451 |               Ok(value_cstr) => match value_cstr.to_str() {
    |  _______________________________^
452 | |                 Ok(value_str) => Some(value_str),
453 | |                 Err(_e) => None,
454 | |             },
    | |_____________^ help: replace with: `value_cstr.to_str().ok()`
    |

The link checker also found a real issue. It would be good to be fixed, but fine if you can't find the alternative resource:

Error:  https://static.docs.arm.com/ihi0069/c/IHI0069C_gic_architecture_specification.pdf | Network error: error sending request for url (https://static.docs.arm.com/ihi0069/c/IHI0069C_gic_architecture_specification.pdf) Maybe a certificate error?

@lisongqian
Copy link
Contributor Author

@lisongqian Thank you for fixing the clippy issues. Overall looks good to me. Few legit issues being caught by the CI workers.

For risc-v worker, I guess the reason is that we only test on MSRV, and issues will only be reported with MSRV bump.

   --> arch/src/riscv64/fdt.rs:451:31
    |
451 |               Ok(value_cstr) => match value_cstr.to_str() {
    |  _______________________________^
452 | |                 Ok(value_str) => Some(value_str),
453 | |                 Err(_e) => None,
454 | |             },
    | |_____________^ help: replace with: `value_cstr.to_str().ok()`
    |

The link checker also found a real issue. It would be good to be fixed, but fine if you can't find the alternative resource:

Error:  https://static.docs.arm.com/ihi0069/c/IHI0069C_gic_architecture_specification.pdf | Network error: error sending request for url (https://static.docs.arm.com/ihi0069/c/IHI0069C_gic_architecture_specification.pdf) Maybe a certificate error?

The clippy issues and link checker issue have been fixed. But I meet new errors when building mod on RISC-V. Do you have any suggestions? @likebreath @RuoqingHe

Copy link
Member

@RuoqingHe RuoqingHe left a comment

Choose a reason for hiding this comment

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

The clippy issues and link checker issue have been fixed. But I meet new errors when building mod on RISC-V. Do you have any suggestions? @likebreath @RuoqingHe

Fixed by restarting those cases

Fix clippy error: "error: manual implementation of `.is_multiple_of()
`" from rustc 1.90.0-beta.1 (788da80fc 2025-08-04).

Signed-off-by: Songqian Li <[email protected]>
rustc 1.90.0-beta.1 (788da80fc 2025-08-04) suggests using library
feature `unsigned_is_multiple_of`. It is stabled in Rust 1.87.0.

Update image to 20250807-0 since MSRV in Dockerfile is updated.

Signed-off-by: Songqian Li <[email protected]>
Signed-off-by: Bo Chen <[email protected]>
Replacing pdf link with new available link to fix the failed CI.

Signed-off-by: Songqian Li <[email protected]>
@likebreath
Copy link
Member

Great. Thanks, folks. Updated the container tag to 20250807-0.

@likebreath likebreath enabled auto-merge August 7, 2025 16:04
@likebreath likebreath added this pull request to the merge queue Aug 7, 2025
Merged via the queue into cloud-hypervisor:main with commit 0bfa160 Aug 7, 2025
43 checks passed
@lisongqian lisongqian deleted the fix-beta-clippy branch August 22, 2025 02:49
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.

3 participants