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

Beta regression with lifetime inference #29979

Closed
Ryman opened this Issue Nov 22, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@Ryman
Copy link
Contributor

Ryman commented Nov 22, 2015

I'm unsure if this issue is specifically related to Borrow or HashMap::get but this playpen works on current stable (1.4), but fails on both beta and nightly.

The issue can be fixed with a type annotation in the simple case, as shown on playpen if you uncomment the line above the failure, so I assume failure is not intended by some change in lifetime rules. (Additionally, the error message itself doesn't help lead a user to the solution here :( )

But, I've got a more complicated manifestation which I've been unable to solve with type-hints so I think it's worth a look at: seanmonstar/unicase#6

Travis outputs for linked PR

cc @nikomatsakis @brson

@bluss

This comment has been minimized.

Copy link
Contributor

bluss commented Nov 22, 2015

This should be the same as #28853

@arielb1 arielb1 added the I-nominated label Nov 22, 2015

@arielb1

This comment has been minimized.

Copy link
Contributor

arielb1 commented Nov 22, 2015

@Ryman

This is a known regression that is the same as #28853. The old code compiled for dubious reasons. Due to the evil nature of find, it is unclear how to get it to compile usefully, except by aggressive use of transmute.

@arielb1 arielb1 added the T-compiler label Nov 22, 2015

@Ryman

This comment has been minimized.

Copy link
Contributor Author

Ryman commented Nov 23, 2015

@arielb1 Okay, should we close as duplicate?

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Nov 23, 2015

Closing per @arielb1 as dupe.

@brson brson closed this Nov 23, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.