-
Notifications
You must be signed in to change notification settings - Fork 1.8k
unexpected token in input when proptest! in file #6747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't know if it's the same bug, but my advent of code project also has |
BTW the suggestion here https://www.reddit.com/r/rust/comments/k8fo7w/rustanalyzer_changelog_54/gexzaem/?utm_source=reddit&utm_medium=web2x&context=3 got the meseges to go way so I can use rust-analyzer untill this is fixed. |
Had the same issue; can confirm that the suggestion removes the problem for now. In my case, the error was
At least doing this gets rid of all of the red in my project:
|
Heh, looks like that's because |
6765: Fix file range computation in macros r=jonas-schievink a=jonas-schievink This also aligns the diagnostics behavior of `TestDB` with the one from the real IDE (by making the logic from `semantics.rs` a method on `InFile<&SyntaxNode>`), which makes bugs like this easier to find. This should fix the misplaced diagnostics seen in #6747 and other issues. bors r+ Co-authored-by: Jonas Schievink <[email protected]>
6768: Fix `concat!` with integer literals r=jonas-schievink a=jonas-schievink Addresses #6747 (comment) bors r+ Co-authored-by: Jonas Schievink <[email protected]>
The |
I just updated my version of rust-analyzer and removed the change in settings. And this is still happening. It is no longer every file, it is no longer at the top. But every call to |
Repro: macro_rules! foo {
() => {{
concat!(module_path!(), "::");
}};
}
fn main() {
foo! {}
} |
Even just |
Oh, we simply do not implement |
I just updated my rust analyzer, and now every file (at least in this project) gets the error
unexpected token in input
. The project is https://github.com/pubgrub-rs/pubgrub, and @lnicola can reproduce. They think it is the use ofproptest!
. I don't know how to be more helpful.cc https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Fwg-rls-2.2E0/topic/unexpected.20token.20in.20input
The text was updated successfully, but these errors were encountered: