Skip to content

[paths.expr.argument-order] is outdated #1857

Open
@lcnr

Description

@lcnr

The order of generic arguments is restricted to lifetime arguments, then type arguments, then const arguments, then equality constraints.

const and type arguments can now be in arbitrary order. This is already correct for parameters https://doc.rust-lang.org/nightly/reference/items/generics.html#r-items.generics.syntax.decl-order. This restriction generally shouldn't exist. We parse generic arguments in arbitrary order and only error when checking whether the order matches the generic parameters of the item

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions