Skip to content

Beta regression with lifetime inference #29979

@Ryman

Description

@Ryman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions