-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cannot relate bound region (internal compiler error) #25279
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
Comments
Here's a backtrace for the same error message:
|
Rather simplified: struct S<'a>(&'a ());
impl<'a> S<'a> {
fn foo(self) {
<Self>::foo(self);
}
}
fn main() {} The problem is that we don't substitute regions when using astconv in Self. |
This also happens with the stable 1.0 version btw. |
arielb1
pushed a commit
to arielb1/rust
that referenced
this issue
May 20, 2015
This is needed because `Self` can be substituted to a type with lifetime parameters. Fixes rust-lang#24308 Fixes rust-lang#25071 Fixes rust-lang#25259 Fixes rust-lang#25279
#25652 did not fix the issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I hit an internal compiler error with this weeks build. It occurs when I try to build https://github.com/Kintaro/wtftw/tree/1d8040fddfedfd3b111bb4d5a8466fcb8120e339
Error output and rustc version are below.
rustc 1.1.0-nightly (dc630d0 2015-05-09) (built 2015-05-10)
The text was updated successfully, but these errors were encountered: