Skip to content

Logging a tuple causes an LLVM assertion to fail #391

Closed
@lkuper

Description

@lkuper
fn main() {
    auto t = tup(1, 2, 3);
    log_err t;
}

fails to compile with:

rustc: /home/lkuper/llvm/include/llvm/Support/Casting.h:202: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = llvm::IntegerType, Y = llvm::Type_, typename llvm::cast_retty<To, From>::ret_type = llvm::IntegerType_]: Assertion `isa(Val) && "cast() argument of incompatible type!"' failed.

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