-
-
Notifications
You must be signed in to change notification settings - Fork 15k
core fails to build with E0493 when coverage instrumentation is enabled #93848
Copy link
Copy link
Closed
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-destructorsArea: Destructors (`Drop`, …)Area: Destructors (`Drop`, …)C-bugCategory: This is a bug.Category: This is a bug.
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)A-destructorsArea: Destructors (`Drop`, …)Area: Destructors (`Drop`, …)C-bugCategory: This is a bug.Category: This is a bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
// src/lib.rs is emptyenv RUSTFLAGS='-C instrument-coverage -Z no-profiler-runtime' cargo build --target x86_64-unknown-linux -gnu -Z build-stdI expected to see this happen: A successful build
Instead, this happened:
error[E0493]: destructors cannot be evaluated at compile-timewhile buildingcoreMeta
rustc --version --verbose: