Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
plusls opened this issue Jun 19, 2024 · 1 comment · Fixed by #17462
Closed

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

plusls opened this issue Jun 19, 2024 · 1 comment · Fixed by #17462
Labels
A-proc-macro proc macro C-bug Category: bug

Comments

@plusls
Copy link

plusls commented Jun 19, 2024

rust-analyzer version: 2024-06-10

rustc version: rustc 1.81.0-nightly (8fcd4dd08 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

@plusls plusls added the C-bug Category: bug label Jun 19, 2024
@roife
Copy link
Member

roife commented Jun 20, 2024

The problem might be associated with #17004.

@lnicola lnicola added the A-proc-macro proc macro label Jun 20, 2024
@bors bors closed this as completed in e08f795 Jun 20, 2024
lnicola pushed a commit to lnicola/rust that referenced this issue Jun 23, 2024
github-actions bot pushed a commit to rust-lang/miri that referenced this issue Jun 24, 2024
flip1995 pushed a commit to flip1995/rust-clippy that referenced this issue Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-proc-macro proc macro C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants