-
Notifications
You must be signed in to change notification settings - Fork 13.3k
dead_code doesn't show unused struct as unused #39558
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
They were marked |
@durka, |
To be honest, I would have expected some other error saying that |
@durka, |
This case would ideally be caught by the possibly-upcoming "this item is not as public as it looks" lint. |
So it appears this is not a bug. Closing! (Let me know if I've gotten this wrong) |
Hi everybody.
I am sorry I tried to minify the example, but I can't find a pattern.
There is a PR: rust-lang/rls#168
There is an commit: "Replaced uses of unwrap with expect.".
In the commit in the src/actions/build.mod file there are two structs:
CompilerMessageCode
,CompilerMessage
which are unused.The compiler doesn't show any warning.
The text was updated successfully, but these errors were encountered: