Skip to content

Abort in rustc on valid code #21767

Closed
Closed
@jleahy

Description

@jleahy

This is using "rustc 1.0.0-nightly (458a6a2 2015-01-25 21:20:37 +0000)".

Code:

#![start]
#[no_mangle]
fn main() {}

Command line:

rustc test.rs

Error:

test.rs:1:1: 1:10 warning: unused attribute, #[warn(unused_attributes)] on by default
test.rs:1 #![start]
          ^~~~~~~~~
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' 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