-
Notifications
You must be signed in to change notification settings - Fork 13k
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
LLVM assertion error with self-by-value #6068
Comments
Backtrace:
|
It was suggested that this failure is related to self-by-value. |
I managed to make a minimal test case: trait FooUtil {
fn add(self) -> int;
}
impl FooUtil for char {
fn add(self) -> int {
2
}
}
fn main() {
let a = 'c';
a.add();
} Given that a similar test case: struct Foo {
a:int
}
trait FooUtil {
fn add(self) -> int;
}
impl FooUtil for Foo {
fn add(self) -> int {
2
}
}
fn main() {
let a = Foo { a:1 };
a.add();
} compiles, I'm going to say that it's an issue with primitive types |
As some extra information, this only happens if you actually try to use the implementation. |
Further investigation shows this as a duplicate of #5321. Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with https://github.com/cmr/rust/tree/methodize/char I consistently get
Runs fine before the char commit. I don't know how to strip it down, because I have no idea what could be failing
The text was updated successfully, but these errors were encountered: