Skip to content

Coccinelle docs: confusing example #13

@RalfJung

Description

@RalfJung

The docs at https://rust-for-linux.com/coccinelle-for-rust have this example:

Merging some lifetimes in tokio:

@@
identifier f, P, p;
type T1, T2;
@@
- f<P: T1>(p: P) -> T2
+ f(p: impl T1) -> T2
     { ... }

However, there is not a single lifetime in this example, so it is unclear why this is described as "merging some lifetimes".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions