ICE on nightly-2021-12-21 and later: change source file timestamp, get "failed to lookup SourceFile
in new context"
#92304
Labels
A-incr-comp
Area: Incremental compilation
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.
Uh oh!
There was an error while loading. Please reload this page.
Summary
By changing the timestamp on a rust source file between builds, I'm able to reliably reproduce an ICE with
nightly-2021-12-21
and later.I've included a minimal repro repository, and the ICE can be recreated on alternating builds simply by modifying an input file timestamp. So far, I'm only able to reproduce this in a repo that includes a build script to generate gRPC stubs via Tonic & Prost, so my example repo attempts to whittle things down to the bare minimum.
Code
Subsequent iterations of the following produce a clean build, followed by the ICE:
Meta
This does not reproduce on the
stable
orbeta
channels. It reproduces onnightly-2021-12-21
and later, but does not reproduce onnightly-2021-12-20
.The current nightly toolchain with reproduction:
Earliest toolchain with which I found a reproduction:
Dec 20 toolchain does not reproduce:
The text was updated successfully, but these errors were encountered: