Skip to content
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

Begin experimental support for pin reborrowing #130526

Merged
merged 5 commits into from
Sep 20, 2024
Merged

Commits on Sep 18, 2024

  1. Begin experimental support for pin reborrowing

    This commit adds basic support for reborrowing `Pin` types in argument
    position. At the moment it only supports reborrowing `Pin<&mut T>` as
    `Pin<&mut T>` by inserting a call to `Pin::as_mut()`, and only in
    argument position (not as the receiver in a method call).
    eholk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    7b7992f View commit details
    Browse the repository at this point in the history
  2. Apply code review suggestions

    eholk committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    a73c8b1 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Allow shortening reborrows

    Generating a call to `as_mut()` let to more restrictive borrows than
    what reborrowing usually gives us. Instead, we change the desugaring to
    reborrow the pin internals directly which makes things more expressive.
    eholk committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    b2b76fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    92a5d21 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a18800f View commit details
    Browse the repository at this point in the history