Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Type parameters in where clauses are not recognised #987

@little-arhat

Description

@little-arhat

as a consequence, rls fails to rename type parameters in where clauses:

pub trait SomeTrait {}

pub struct Opa<TP>
where
    TP: SomeTrait,
{
    tp: TP,
}

After renaming TP type parameter to TPTP I've got:

pub struct Opa<TPTP>
where
    TP: SomeTrait,
{
    tp: TPTP,
}
```.

`TP` in where clause is also not highlighted when cursor is on `TP` in `struct Opa<TP>`. 

$ rls --version
rls-preview 0.130.2-nightly (6d72813 2018-08-04)


I'm using `rls` in emacs.

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