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

attempted to read from stolen value: rustc_middle::thir::Thir #940

Open
Kixunil opened this issue Feb 12, 2024 · 2 comments
Open

attempted to read from stolen value: rustc_middle::thir::Thir #940

Kixunil opened this issue Feb 12, 2024 · 2 comments

Comments

@Kixunil
Copy link

Kixunil commented Feb 12, 2024

I tired running creusot from master (eb3d2c0) and got this error:

thread 'rustc' panicked at creusot/src/ctx.rs:395:25:
attempted to read from stolen value: rustc_middle::thir::Thir
@xldenis
Copy link
Collaborator

xldenis commented Feb 12, 2024

can you provide the program you attempted to run it on and the specific command you used?

@Kixunil
Copy link
Author

Kixunil commented Feb 12, 2024

I did it in a disposable VM which I already killed :) But the code is too large anyway.

Basically I was trying to prove that this type is correct: https://github.com/rust-bitcoin/rust-bitcoin/blob/4544f5d3c2b7b3babac499a25f1053064636d7b2/bitcoin/src/pow.rs#L322

I added ensures(result.to_be_bytes() == a) on top of from_be_bytes and analogous for LE, moved build.rs to avoid failures and ran cargo creusot.

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