Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Make closures inherit their parent's "safety context" #9

Closed
LeSeulArtichaut opened this issue May 22, 2021 · 0 comments · Fixed by rust-lang/rust#85607
Closed

Make closures inherit their parent's "safety context" #9

LeSeulArtichaut opened this issue May 22, 2021 · 0 comments · Fixed by rust-lang/rust#85607
Labels
bug Something isn't working

Comments

@LeSeulArtichaut
Copy link
Contributor

Checking unsafety for closures should be handled by their parent body, as closures inherit their "safety context" from their declaration site.

Blocked on rust-lang/rust#85273.

@LeSeulArtichaut LeSeulArtichaut added the bug Something isn't working label May 22, 2021
bors added a commit to rust-lang-ci/rust that referenced this issue May 28, 2021
…s, r=nikomatsakis

Make closures inherit their parent's "safety context"

Fixes rust-lang/project-thir-unsafeck#9, ~~blocked on rust-lang#85273~~.
r? `@nikomatsakis`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant