Skip to content

Methods missing from auto complete list #20572

@EvanMashack

Description

@EvanMashack

I noticed the auto complete was missing trait bound methods that should be included. I tried various restarts and versioning but couldn't resolve the issue. After some googling I found that I'm not the only one experiencing this but didn't' see a resolution anywhere.

Any suggestions or confirmation of the bug would be helpful as I'm a heavy auto completer.

Image

rust-analyzer version: 0.4.2598-standalone (67a58fd 2025-08-29), I tried using the release and pre-release versions in the vs code extension.

use chrono::{offset::Local, Datelike};
fn main() {
    let today = Local::now().date_naive();
    
    // Typing today.m or today.d, shows the methods ending in 0 but the 2 without 0 are missing.
    let _month = today.month();
    let _month0 = today.month0();
    let _day = today.day();
    let _day0 = today.day0();
}
[package]
name = "missing_method"
version = "0.1.0"
edition = "2024"

[dependencies]
chrono = "0.4.41"

https://www.reddit.com/r/rust/comments/1amifty/rustanalyzer_doesnt_seem_to_list_all_autocomplete/

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions