InlayHints vanish with tracing instrument macro on method

⚓ rust    📅 2025-05-12    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 49 days ago. The information described in this article may have changed.

I use rust-analyzer via VSCode. (latest stable with v0.3.2457).
When adding the tracing::instrument macro to a method, almost all method chain inlay hints vanish. I tried to extract a minimal version, the only dependencies are ureq and tracing. I have not changed any settings in the inlayHints section in the rust-analyzer config

When I remove the instrument-macro from the bar-method, the inlay hints are shown like in the main method.

inlayHints

I am fairly new to rust, so maybe this works as intended and I did not find the corresponding documentation yet. I did not see any obvious errors in the output.

Is this working as intended?

1 post - 1 participant

Read full topic

🏷️ rust_feed