Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create binary operator with two operands of differing type! #2150

Closed
jruderman opened this issue Apr 7, 2012 · 0 comments
Closed
Labels
A-codegen Area: Code generation

Comments

@jruderman
Copy link
Contributor

fn fail_len(v: [const int]) -> uint {
    let mut i = fail;
    for v.each {|x| i += 1u; }
    ret i;
}
fn main() {}

Breaks rustc:

Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"), function Create, file /Users/jruderman/code/rust/src/llvm/lib/VMCore/Instructions.cpp, line 1825.
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Rustup

In particular, this contains rust-lang#97219. Miri support for actually erroring on misuse of `ptr::invalid` will happen later.

Also move some more tests to better locations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation
Projects
None yet
Development

No branches or pull requests

2 participants