Skip to content

"Could not find visit in syn" in IntellJ. #5819

Discussion options

You must be logged in to vote

Huh, no wonder, we missed the feature here:

diff --git a/Cargo.toml b/Cargo.toml
index 96d44128a..9d41e1d49 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -128,6 +128,7 @@ syn = { version = "1.0", features = [
   "extra-traits",
   "printing",
   "parsing",
+  "visit",
   "visit-mut",
 ] }
 quote = { version = "1.0.23" }

With that change, it works. I will make a PR for that.

Seemingly, some WASM dependencies turn on this feature, so we hadn't to do that on WASM builds.

Replies: 1 comment 1 reply

Comment options

farmaazon
Mar 7, 2023
Collaborator Author

You must be logged in to vote
1 reply
@wdanilo
Comment options

Answer selected by farmaazon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants