Skip to content

lifetime extension: mention how projections are handled #63

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

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Dec 1, 2020

This is based on reading the following code:

https://github.com/rust-lang/rust/blob/c4926d01ada661d4fbffb0e5b1708ae5463d47b3/compiler/rustc_mir/src/transform/promote_consts.rs#L1008

and based on the fact that promoted projections can contain array/slice indexing depending on runtime values.

@oli-obk oli-obk merged commit 5d3db6d into rust-lang:master Jan 3, 2021
@RalfJung RalfJung deleted the projections branch May 9, 2021 12:26
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.

2 participants