Skip to content

Fix warnings for rust 1.88 and upgrade CI rust version#3632

Merged
stevenengler merged 7 commits intoshadow:mainfrom
stevenengler:rust-1.88
Jul 23, 2025
Merged

Fix warnings for rust 1.88 and upgrade CI rust version#3632
stevenengler merged 7 commits intoshadow:mainfrom
stevenengler:rust-1.88

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

Fixes clippy warnings and errors in rust 1.88, and upgrades the rust version in CI.

@stevenengler stevenengler self-assigned this Jul 20, 2025
@github-actions github-actions bot added Component: Libraries Support functions like LD_PRELOAD and logging Component: Testing Unit and integration tests and frameworks Component: Main Composing the core Shadow executable Component: Documentation In-repository documentation, under docs/ labels Jul 20, 2025
@stevenengler stevenengler requested a review from a team July 20, 2025 04:54
Copy link
Copy Markdown
Member

@robgjansen robgjansen left a comment

Choose a reason for hiding this comment

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

LGTM!

I'm not sure about 1f98f17, so if you want feedback about that specific change you might want to ask @sporksmith.

These were done by `clippy --fix` and hand-edited where needed.
```text
error[E0283]: type annotations needed
   --> test/unistd/test_unistd.rs:133:59
    |
133 |     assert_eq!(expected_name.sysname, to_cstr(&n.sysname).into());
    |                                                           ^^^^
    |
    = note: cannot satisfy `_: From<&CStr>`
    = note: required for `&CStr` to implement `Into<_>`
help: try using a fully qualified path to specify the expected types
    |
133 -     assert_eq!(expected_name.sysname, to_cstr(&n.sysname).into());
133 +     assert_eq!(expected_name.sysname, <&CStr as Into<T>>::into(to_cstr(&n.sysname)));
    |

For more information about this error, try `rustc --explain E0283`.
```
@stevenengler stevenengler enabled auto-merge July 23, 2025 23:46
@stevenengler stevenengler merged commit 95abbe4 into shadow:main Jul 23, 2025
25 checks passed
@stevenengler stevenengler deleted the rust-1.88 branch July 24, 2025 00:00
@stevenengler
Copy link
Copy Markdown
Contributor Author

I'm not sure about 1f98f17, so if you want feedback about that specific change you might want to ask @sporksmith.

I removed that commit from this MR and replaced it with a new commit that does just an #[allow(...)]. I've moved the original commit to a new MR: #3636.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Documentation In-repository documentation, under docs/ Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable Component: Testing Unit and integration tests and frameworks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants