这是indexloc提供的服务,不要输入任何密码
Skip to content

Lifetime is incorrectly inferred as dead #672

@hellerve

Description

@hellerve

As pointed out in the chat, sometimes the lifetime inferrence will infer that an alive reference is dead. Here’s an example of the bug and a workaround in the test code for URI.

The good news is that this seems to happen pretty rarely, and can be fixed by hoisting an inline reference into a containing let statement. It should still be fixed, of course.

Cheers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions