Skip to content

False positive compile error from lack of trait object coercion #21885

@djc

Description

@djc

With hickory-dns/hickory-dns@a1f77f5, I'm seeing false positive errors at

https://github.com/hickory-dns/hickory-dns/blob/main/crates/resolver/src/name_server_pool.rs#L1279

and

https://github.com/hickory-dns/hickory-dns/blob/main/crates/resolver/src/name_server_pool.rs#L1291

Image

Running cargo check --all-features --all-targets in crates/resolver does not reproduce these issues.

rust-analyzer version: rust-analyzer version: 0.3.2836-standalone (b42b63f 2026-03-22) [/Users/djc/.vscode/extensions/rust-lang.rust-analyzer-0.3.2836-darwin-arm64/server/rust-analyzer]

rustc version: rustc 1.94.0 (4a4ef493e 2026-03-02)

editor or extension: 0.3.2836

Metadata

Metadata

Assignees

Labels

A-tytype system / type inference / traits / method resolutionC-bugCategory: bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions