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

[pointer] Match variance of references (#1894) #2382

Conversation

google-pr-creation-bot
Copy link
Contributor

Automated changes by create-pull-request GitHub action

When the aliasing mode is `Any`, `Ptr<'a, T>` is invariant in `'a` and
`T`. When the aliasing mode is `Shared` or `Exclusive`, `Ptr` has the
same variance as `&'a T` and `&'a mut T` respectively.

Makes progress on google#1839
@joshlf joshlf enabled auto-merge February 24, 2025 23:29
@joshlf
Copy link
Member

joshlf commented Feb 24, 2025

Backporting #1894

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.78%. Comparing base (6ebdffb) to head (9e62836).

Additional details and impacted files
@@           Coverage Diff           @@
##           v0.8.x    #2382   +/-   ##
=======================================
  Coverage   87.78%   87.78%           
=======================================
  Files          17       17           
  Lines        6183     6183           
=======================================
  Hits         5428     5428           
  Misses        755      755           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshlf
Copy link
Member

joshlf commented Feb 24, 2025

This can't be backported because GATs aren't stable on our 0.8 MSRV.

@joshlf joshlf closed this Feb 24, 2025
auto-merge was automatically disabled February 24, 2025 23:36

Pull request was closed

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