Skip to content

Add deprecation warning when using the tracing::instrument macro on a trait method without a body #3307

Open
@CaptainTux

Description

@CaptainTux

Based on a build error I found and a discussion on the Rust community discord server, I believe it would be good to add a deprecation warning, or a proper error, when using the tracing::instrument macro on a trait method without a body, which used to work.
In my case the error message was not properly identifying the problem, and I only learned about the solution in the discord server where a person probably already knew about this change problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions