ICE: Couldn't find field in struct type (middle::trans::expr::trans_rec_or_struc) #8044
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
There is a bug in either exporting or importing metadata from/to a crate. Consider the following test case:
Invoking
rustc minimal.rs
results in a binary without any errors. However, the problem arises when the code listed above is compiled as a DSO and use'd in another file:Invoking
rustc --libs minimal.rs && rustc -L. test_minimal.rs
causes the failure:And the corresponding backtrace:
The text was updated successfully, but these errors were encountered: