tracing icon indicating copy to clipboard operation
tracing copied to clipboard

instrument attribute doesn't work with precise capturing

Open smessmer opened this issue 1 year ago • 0 comments

Bug Report

Rust 1.82 introduced precise capturing, see https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html#precise-capturing-use-syntax

Using this in a function annotated with #[instrument] fails with

expected identifier, found keyword `use`

Version

tracing 0.1.40

Platform

Ubuntu x86_64

smessmer avatar Oct 18 '24 05:10 smessmer