You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using stable rustc 1.56.0 (09c42c458 2021-10-18) and rust-analyzer v0.2.809. I found that derive-macro-helper-attributes have to be placed before related derive-macros when using cfg_attr. Otherwise, the rust-analyzer will generate red highlights indicating there exist errors.
The problem is related to cfg_attr, I made a minimal example so that you can verify it locally.
I'm using stable
rustc 1.56.0 (09c42c458 2021-10-18)
andrust-analyzer v0.2.809
. I found that derive-macro-helper-attributes have to be placed before related derive-macros when usingcfg_attr
. Otherwise, the rust-analyzer will generate red highlights indicating there exist errors.The problem is related to
cfg_attr
, I made a minimal example so that you can verify it locally.Here are screenshot for illustrations:
I'm not sure but it seems a bug...
The text was updated successfully, but these errors were encountered: