dtolnay / syn

Parser for Rust source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to resolve: use of undeclared type `Lit`

Raistah opened this issue · comments

At some point, the tests in my repository stopped running, I decided to create a completely new project and the same error occurred there
image
i resoled this by changing version to "<2.0.47"
image

I was not able to reproduce this, and there is absolutely no relevant change between 2.0.46 and 2.0.48 that could cause that error. 2.0.46...2.0.48

My guess is you made your own code changes to syn's source code in /home/raistah/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.48 on your machine.

Something very strange happened...
I realized that the problem is in rscss, there is some version conflict, but if in cargo.toml is written with the latest version but also with the < symbol, everything works.

At the same time, the test crate still has this error, although there are almost no dependencies.

I did not make any changes to the repository, but I can assume that the problem is in some cache, because in fact the problem completely disappears when I add "<" to the crate version
image