Skip to content

"second test attribute is supplied" errors from R-A #21206

@djc

Description

@djc

Error:

second test attribute is supplied, consider removing or changing the order of your test attributes

cargo check --all-features --all-targets does not reproduce this error. (I have RA set to use --all-features, too.)

Persists through windows reloads. Only observed in files for which I have a tab open.

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)

rust-analyzer version: 0.3.2702-standalone (d646b23 2025-11-30) [/Users/djc/.vscode/extensions/rust-lang.rust-analyzer-0.3.2702-darwin-arm64/server/rust-analyzer]

rustc version: rustc 1.90.0 (1159e78c4 2025-09-14)

editor or extension: VS Code, 0.3.2702

repository link (if public, optional): https://github.com/hickory-dns/hickory-dns/blob/main/tests/integration-tests/tests/integration/client_tests.rs#L475, previously also seen in other modules in the same repo (but different crate).

code snippet to reproduce:

Not a full reproduction, just an indication:

#[cfg(all(feature = "__dnssec", feature = "sqlite"))]
#[tokio::test]
async fn test_create() {
   ..
}

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