core
fails to build with E0493 when coverage instrumentation is enabled
#93848
Labels
A-code-coverage
Area: Source-based code coverage (-Cinstrument-coverage)
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-destructors
Area: Destructors (`Drop`, …)
C-bug
Category: This is a bug.
I tried this code:
// src/lib.rs is empty
env RUSTFLAGS='-C instrument-coverage -Z no-profiler-runtime' cargo build --target x86_64-unknown-linux -gnu -Z build-std
I expected to see this happen: A successful build
Instead, this happened:
error[E0493]: destructors cannot be evaluated at compile-time
while buildingcore
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: