Skip to content
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

Many tests fail with: tried to access a dead local variable #303

Closed
RalfJung opened this issue Aug 13, 2017 · 3 comments
Closed

Many tests fail with: tried to access a dead local variable #303

RalfJung opened this issue Aug 13, 2017 · 3 comments

Comments

@RalfJung
Copy link
Member

Looks like something changed in rustc, and it now emits StorageDead/StorageLive differently.

@RalfJung RalfJung changed the title All tests fail with: tried to access a dead local variable Many tests fail with: tried to access a dead local variable Aug 13, 2017
@oli-obk
Copy link
Contributor

oli-obk commented Aug 14, 2017

I think it's purely related to the box keyword. The only related PR I've found is rust-lang/rust#43772

bors added a commit to rust-lang/rust that referenced this issue Aug 15, 2017
emit StorageLive for box temporaries

We started emitting StorageDead, so we better emit the corrseponding
StorageLive to avoid problems.

cc #43772 rust-lang/miri#303
@RalfJung
Copy link
Member Author

Should be fixed by next nightly, as rust-lang/rust#43859 fixes the issue.

@RalfJung
Copy link
Member Author

Fixed upstream.

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

No branches or pull requests

2 participants