Skip to content

2024-06-10 break test_log::test macro #17453

@plusls

Description

@plusls

rust-analyzer version: 2024-06-10

rustc version: rustc 1.81.0-nightly (8fcd4dd 2024-06-18)

editor or extension: vscode

relevant settings: None
repository link (if public, optional): None
code snippet to reproduce:

// add your code here
fn main() {
    println!("Hello, world!");
}

fn ttt() -> String {
    String::new()
}

#[cfg(test)]
mod tests {
    use super::*;
    use test_log::test;

    #[test(tokio::test)]
    async fn test_ttt() {
        let a = ttt();
    }
}

Since rust analyzer 2024-06-10(0.3.1992),it can not show the var type of a:

image

And in rust analyzer 2024-06-03(0.3.1983),it works

image

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