Skip to content

tracing-core tests fail on nightly with codegen-units=1 opt-level>0, probably due to LLVM 17 #114699

Closed as not planned
@durin42

Description

Code

The tracing-core crate, versions 0.1.30 and 0.1.31 (as well as git 941b1591) fails tests:

RUSTFLAGS='-Ccodegen-units=1 -Copt-level=1' cargo +nightly test gives test field::test::value_sets_with_fields_from_other_callsites_are_empty ... FAILED

Version it worked on

Works in beta, and worked in nightly as of ~a week ago. I think the difference is the LLVM 17 upgrade. We've been chasing this defect for a couple weeks inside Google, where we run Rust and LLVM HEAD, and it showed up for us when we started doing more in opt-level=1.

Version with regression

rustc --version --verbose:

rustc 1.73.0-nightly (08d00b40a 2023-08-09)
binary: rustc
commit-hash: 08d00b40aef2017fe6dba3ff7d6476efa0c10888
commit-date: 2023-08-09
host: x86_64-unknown-linux-gnu
release: 1.73.0-nightly
LLVM version: 17.0.0

@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged +A-LLVM

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions