-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo check
does not see missing functions
#11765
Comments
cargo check
seems to not respect crate versions?cargo check
does not see missing functions
Can you reproduce this directly, without using a wrapper around cargo? You shouldn't even need the unstable feature for this but a repro repo with a |
Probably I found the cause. I run all commands from VSCode integrated terminal, and of course I have working rust-analyzer LSP. It seems that LSP overrides the
When I close VSCode and tried to reproduce my case from console, error is always generated. Seems this is the error in |
I'm not sure, however, how it is possible, that @taiki-e, could you look at this, is that possible scenario, that |
As this doesn't sound like a bug in cargo, I'm going to go ahead and close. |
Problem
I found this when tried to reproduce user bug report, as I initially described here: #11762
I found that
cargo minimal-versions check
(which in the end callscargo check
) does not report the obvious error, butcargo minimal-versions build
(which in the end callscargo build
) reports it.Because functions
memchr2
andmemchr3
that used byquick-xml
was added only inmemchr
v2.1 (see tafia/quick-xml#562), both commands should definitely fail. According to the description of thecargo check
, only code generation step is omitted and missing function is obviously should be detected on early step of compilation.Steps
cargo minimal-versions check
-- no errors:cargo minimal-versions build
-- see errors:Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: