Skip to content

#[macro] impl Trait for Struct misses autocompletion for fn's #20231

@tcanabrava

Description

@tcanabrava

steps to reproduce:

Download the demo project for godot-rust.

https://github.com/godot-rust/demo-projects.git

Open the rust lib on a editor that has rust-analyzer enabled.
Open any rust file, find code that starts with:

#[godot_api]
impl IArea2D for SomeStruct { 
}

Invoke the completion list inside of the impl block.

Vscode (Rust Analyzer):

Image

Rust Rover (Non Rust Analyzer):

Image

See that the completion list for Rust Analyzer is a Generic list (it has even println! and assert!, while the list provided by RustRover are the functions of the trait.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions