tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.52k stars 725 forks source link

instrument attribute doesn't work with precise capturing #3110

Open smessmer opened 1 month ago

smessmer commented 1 month ago

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