Skip to content

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

Closed
google-pr-creation-bot wants to merge 1 commit intogoogle:v0.8.xfrom
google-pr-creation-bot:backport-51475bd245d49ed7615234434f6ccf851a3ec18d
Closed

[pointer] Match variance of references (#1894)#2382
google-pr-creation-bot wants to merge 1 commit intogoogle:v0.8.xfrom
google-pr-creation-bot:backport-51475bd245d49ed7615234434f6ccf851a3ec18d

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