Target directory error when using Sha2::256::Digest as return #93383
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hello!
Repro steps:
cargo build
with the code as showncargo build
after changing something about the code (presumably to trigger a recompile)Deleting the
target
directory resolves this error.Deleting
hash_from_prev
resolves this error.Leaving hash_from_prev but removing the
*Sha256::digest(
line resolves this error.^the digest line must be both in the build that created the target and in the build that causes the crash
Moving the digest line into the main code also resolves the issue.
Pardon what is presumably an absolute nightmare of a
hash_from_prev
function, this was me trying to learn some details better.Code
main.rs
Cargo.toml
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: