You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-typesRelevant to the types team, which will review and decide on the PR/issue.
When using InferCtxt::probe/commit_if_ok, we discard all inference variables created inside of this snapshot. This means that returning a type containing inference variables from it can later result in ICE if we try to access them.
The text was updated successfully, but these errors were encountered:
lcnr
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
labels
Mar 8, 2024
snapshot: avoid leaking inference vars
A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.
fixesrust-lang#122098
r? `@oli-obk`
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 8, 2024
snapshot: avoid leaking inference vars
A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.
fixesrust-lang#122098
r? `@oli-obk`
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Mar 12, 2024
snapshot: avoid leaking inference vars
A first step towards fixing rust-lang#122188. There are still some FIXMEs left, most notably method probing.
fixesrust-lang#122098
r? `@oli-obk`
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-typesRelevant to the types team, which will review and decide on the PR/issue.
When using
InferCtxt::probe/commit_if_ok
, we discard all inference variables created inside of this snapshot. This means that returning a type containing inference variables from it can later result in ICE if we try to access them.This should not happen and we should protect ourselves from doing so in the future. cc https://rust-lang.zulipchat.com/#narrow/stream/144729-t-types/topic/leaking.20infer.20vars.20from.20snapshots
The text was updated successfully, but these errors were encountered: