debug
and display
names for constructor and render parameters don't compile with "tracing"
enabled
#86
Labels
priority: next
I'll probably get to it, eventually.
state: inactive
No action needed or possible. The issue is either fixed or addressed better by other issues.
type: bug
Something isn't working as expected
Describe the bug
Constructor and render parameters can't be named
debug
ordisplay
. This issue is inherited from tokio-rs/tracing#1318.To Reproduce
Write a component as follows:
This fails to compile with errors like the following:
Expected behavior
This should compile.
Screenshots
Not applicable.
please complete the following information:
rustc --version
: rustc 1.57.0 (f1edd0429 2021-11-29)develop
branchAdditional context
This is most likely a macro hygiene issue somewhere in
tracing
.It doesn't appear to originate in the
#[instrument]
attribute macro itself, but the fact that it appears on the parameter span is curious. (However, that span is reused for thefield =
given to tracing.)The text was updated successfully, but these errors were encountered: