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

Slice regions upset in only one case #3138

Closed
graydon opened this issue Aug 7, 2012 · 1 comment
Closed

Slice regions upset in only one case #3138

graydon opened this issue Aug 7, 2012 · 1 comment
Assignees
Labels
A-lifetimes Area: Lifetimes / regions
Milestone

Comments

@graydon
Copy link
Contributor

graydon commented Aug 7, 2012

I don't quite see why but the regions being generated for c and cc in test/run-pass/estr-slice.rs are no longer popular with the compiler as of the fix for compiling const slices. Uncommenting the cases there makes them fail to compile, despite appearing almost identical to the a and b cases above.

@nikomatsakis
Copy link
Contributor

ok, I tracked this down. It's kind of a general problem with the inference heuristics. They don't appear to work so great for regions. I am planning to reimplement the region inference, which is a far more limited problem than type inference. This'll be additional test case to consider.

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
Simplify handling of parens around generic bound trait
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions
Projects
None yet
Development

No branches or pull requests

2 participants