Initially,I created my project in Vscode,and then published it to github for many times, the vscode going well with warnings notice. But after i pull the newest code from github in vscode, the warnings all disapear.
The error can be detected, it just doesn't show warning after pulling from github.
Anyone so kind as to tell me why?
If more info needed, just tell me,thx
do you use it as dependencies for other projects? if so, by default, cargo will suppress warnings when compiling dependencies, you'll need to use cargo build -vv
to see them.
Thx, but i pulled the whole project, not as dependencies. Say, add an irrevelant expression "let num=1;", it should warn this better to be removed. But in project pulled, it woudn't.
The changes to the filesystem can cause bugs; I know rust-analyzer has some bugs with it, and maybe Cargo too. Try opening a file and saving it.
Thanks for all your reply. I solved it by enable settings of Vscode. Just check "Rust-analyzer › Diagnostics › Experimental: " in settings. Strange thing, though, projects pulled from Github would disable it automatically.