Skip to content

Hovering any ident a function body of an #[async_trait] function shows Box #20441

@Veykril

Description

@Veykril

The cause for that is the re-spanning of the macro here https://github.com/dtolnay/async-trait/blob/master/src/expand.rs, but its using the brace spans (which cover the entire body), it feels like we shouldn't even be considering them at all?

It might be that this is not actionable but its something we should investigate whether we can make work better, as the macro has all the rights to do this for better diagnostics.

Metadata

Metadata

Labels

A-macromacro expansionC-enhancementCategory: enhancementE-unknownIt's unclear if the issue is E-hard or E-easy without digging in

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions