Skip to content

internal: remove redundant #[pin] filtering#131

Merged
nbdd0121 merged 1 commit intomainfrom
dev/cleanup
Apr 23, 2026
Merged

internal: remove redundant #[pin] filtering#131
nbdd0121 merged 1 commit intomainfrom
dev/cleanup

Conversation

@nbdd0121
Copy link
Copy Markdown
Member

The generate_projections function already receives a filtered field list, it does not need to filter out #[pin] again.

@nbdd0121 nbdd0121 requested a review from BennoLossin April 14, 2026 14:05
@BennoLossin
Copy link
Copy Markdown
Member

There is #113 which improves the whole generation process. I sadly haven't had the time to review it, but you might :)

BennoLossin
BennoLossin previously approved these changes Apr 14, 2026
Copy link
Copy Markdown
Member

@BennoLossin BennoLossin left a comment

Choose a reason for hiding this comment

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

We can of course also have this one, but it probably is redundant.

@nbdd0121
Copy link
Copy Markdown
Member Author

I discovered this when reviewing #120. I want to get all small fixes out the way before reviewing a big feature :)

The `generate_projections` function already receives a filtered field list,
it does not need to filter out `#[pin]` again.

Signed-off-by: Gary Guo <gary@garyguo.net>
@nbdd0121 nbdd0121 merged commit 253159c into main Apr 23, 2026
26 checks passed
@nbdd0121 nbdd0121 deleted the dev/cleanup branch April 23, 2026 13:23
nbdd0121 added a commit to nbdd0121/linux that referenced this pull request Apr 27, 2026
This series collects all upstream developments of pin-init to date and
synchronize them to the kernel tree.

A major change in this cycle is the bump of MSRV to 1.82 to get rid of
unstable features, following the kernel version bump in 7.1. The MSRV is
bumped straight to 1.85 as pin-init can also be used outside kernel, so we
avoid bumping unless there is a need for new version.

Here are the list of merged changes included in the series:

- examples: mark as `#[inline]` all `From::from()`s for `Error`
  Rust-for-Linux/pin-init#126
- bump minimum Rust version to 1.82
  Rust-for-Linux/pin-init#129
- cleanup `Zeroable` and `ZeroableOptions`
  Rust-for-Linux/pin-init#118
- internal: add missing where clause to projection types
  Rust-for-Linux/pin-init#121
- internal: internal: remove redundant `#[pin]` filtering
  Rust-for-Linux/pin-init#131

For information, here are the list of upstream-only changes, which are
related to Cargo or tests/CI changes only.

- build.rs: use `option_env!` to register env variable dependency
  Rust-for-Linux/pin-init#128
- clean up dependencies
  Rust-for-Linux/pin-init#130
- tests: add test for check correct macro hygiene 
  Rust-for-Linux/pin-init#133
- ci: use tagged release of actions
  Rust-for-Linux/pin-init#134
- ci: have a single job to gate all required jobs
  Rust-for-Linux/pin-init#138

Best,
Gary

--- b4-submit-tracking ---
# This section is used internally by b4 prep for tracking purposes.
{
  "series": {
    "revision": 1,
    "change-id": "20260414-pin-init-sync-ae407945a726",
    "prefixes": [],
    "presubject": ""
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants