Skip to content

Improve RTN support (resolution + analysis; jump to definition, etc) #19303

Open
@compiler-errors

Description

@compiler-errors

rust-analyzer version: rust-analyzer version: 0.3.2330-standalone (02862f5 2025-03-03)

rustc version: rustc 1.87.0-nightly (f9e0239a7 2025-03-04)

editor or extension: VSCode

relevant settings: N/A

repository link (if public, optional): N/A

code snippet to reproduce:

#![feature(return_type_notation)]

trait Foo {
    async fn method();
}

async fn foo<T: Foo>() where T::method(..): Send {}

Hiya. r-a still lacks RTN support in resolution and presumably elsewhere in the type system, so I'm opening a tracking issue for that :) I'd be happy to mentor any technical work here to improve RTN (especially to help understand how RTN works in rustc), since I'm looking to stabilize RTN soon.

Metadata

Metadata

Labels

A-tytype system / type inference / traits / method resolutionB-unstableunstable featureC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions