Skip to content

LLVM assertion failure with -O -g --test #16404

Closed
@jbalintbiro

Description

@jbalintbiro

When i'm trying to compile this file:
https://github.com/saati/skiplist-rs/blob/master/src/skiplist.rs

with rustc -O -g --test

bjb@b:~/code/skiplist-rs$ rustc -O -g --test src/skiplist.rs 
rustc: /home/bjb/src/rust/src/llvm/lib/CodeGen/LexicalScopes.cpp:179: llvm::LexicalScope* llvm::LexicalScopes::getOrCreateRegularScope(llvm::MDNode*): Assertion `DISubprogram(Scope).describes(MF->getFunction())' failed.
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions