-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
Minimal example:
pub trait X { fn f(&self); }
impl X for int { fn f(&self) {} }
pub struct Z<'self>(Option<&'self X>);
pub fn main() { let x = 42; let z = Z(Some(&x as &X)); let _ = z; }
In my Windows machine, it results in:
Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!", file c:/bot/slave/dist2-win/build/src/llvm/lib/IR/Instructions.cpp, line 281
Reproduced on Rust 0.8 and 0.9-pre (371a7ec). It doesn't seem to be Windows specific either.
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
emberian commentedon Oct 4, 2013
Reproduced on Linux.
klutzy commentedon Oct 4, 2013
Example without
Option
:klutzy commentedon Oct 5, 2013
It occurs only with tuple structs; as a workaround, you may replace
with
klutzy commentedon Oct 5, 2013
Sorry. It doesn't solve it generally. I'm now embarrassed that
works, but
does not.
Option<f64>::Some
behaves incorrectly in 64-bit host #9730cnd commentedon Nov 7, 2013
cc
alexcrichton commentedon Mar 2, 2014
This has been fixed, flagging as needstest.
test: Add some tests for closed issues
auto merge of #12738 : alexcrichton/rust/needstest, r=brson,just