Skip to content

add a region-based alt& statement #2225

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
nikomatsakis opened this issue Apr 17, 2012 · 2 comments
Closed

add a region-based alt& statement #2225

nikomatsakis opened this issue Apr 17, 2012 · 2 comments
Assignees
Labels
A-lifetimes Area: Lifetimes / regions C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@nikomatsakis
Copy link
Contributor

alt today creates implicit references. We should make a temporary alt& that creates regions for bindings, deprecate alt, and gradually perform the migration.

@ghost ghost assigned nikomatsakis Apr 17, 2012
@bblum
Copy link
Contributor

bblum commented Jun 29, 2012

I support this. I've been writing a doubly-linked list today and several times have fought "error: illegal borrow unless pure: enum variant in aliasable, mutable location". Very unfriendly.

@bblum
Copy link
Contributor

bblum commented Aug 24, 2012

#3271 subsumes this.

@bblum bblum closed this as completed Aug 24, 2012
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
make frame_in_std check work with inlining

`@InfRandomness` this should help with your trouble in rust-lang/miri#2215
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Co-authored-by: Celina G. Val <celinval@amazon.com>
BoxyUwU pushed a commit to BoxyUwU/rust that referenced this issue Jan 29, 2025
Correct information on dylib compression
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-lifetimes Area: Lifetimes / regions C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants