Skip to content

Use impl header lifetime elision in generated impls for '&' and '&mut' once stable #22

Closed
@LukasKalbertodt

Description

@LukasKalbertodt

Just a reminder: once lifetime elision in impl headers (see tracking issue) is stable, the generated code should use that feature. So instead of:

impl<'a, T> Foo for &'a T {}

It will be (at least I think that's the syntax):

impl<T> Foo for &T {}

Same for &mut.

This does matter as the generated code ends up in the docs. And we want that code to be as idiomatic as possible.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions