Closed miseyu closed 2 months ago
I can reproduce this with both schemars 0.8 and 1.0.0-alpha, but only when using rust-analyzer v0.3.2086. When replacing the derive with the code that it expands to, rust-analyzer has no problems parsing it, which suggests to me that this is a bug in rust-analyzer.
I've raised this as an issue in rust-analyzer here: https://github.com/rust-lang/rust-analyzer/issues/17968
For now, the only workaround I can suggest is to downgrade rust-analyzer to the previous version (v0.3.2078), which does not have this problem.
@GREsau Thank you for your confirmation! Also, thanks for creating the issue! The compilation passes, so there is no problem once it is done! CI will try to support it by lowering the version. Thank you for your patience!
rust-analyzer v0.3.2089 is now available which no longer has this problem 🙂
Overview