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

ICE: trait fn returning &'self => 'region parameterization should have inferred that this type is RP' #6551

Closed
ben0x539 opened this issue May 17, 2013 · 4 comments
Labels
A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@ben0x539
Copy link
Contributor

sample code:

trait Tr<'self> {
    fn f(&self) -> &'self int;
}

fn g<T: Tr<'self>>() {}

fn main() {}

rustc ICE:

rust: task failed at 'region parameterization should have inferred that this type is RP', [...]/rust/src/librustc/middle/typeck/rscope.rs:230

@metajack
Copy link
Contributor

Still an ICE.

not sure if this is important, but nominating for discussing to production ready

brandonson added a commit to brandonson/rust that referenced this issue Aug 24, 2013
Unfortunately, due to rust-lang#8579 and rust-lang#6551, extra::workcache can't be made to
work with the new extra::json.  Either ICEs are cause (which is the
state currently) or there are unconstrained types at the callsites for
extra::work_cache::json_encode.
@catamorphism
Copy link
Contributor

Sub-bug of #4846, de-nominating

@ben0x539
Copy link
Contributor Author

ben0x539 commented Dec 5, 2013

The example code doesn't compile anymore and I can't get it to throw that error anymore by fiddling with it, so I assume this was fixed at some point but I'm not sure what a regression test would look like. Do we need one?

@alexcrichton
Copy link
Member

This fails with a legitimate error today, and I've seen relevant tests for this in the tests suite, so closing.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jan 15, 2021
Tiny Symbol cleanup

* Renames `sym.rs` to `sym_helper.rs` so that the `sym as rustc_sym` is no longer needed.
* Removes one needless `symbol` from a path

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants