-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
False positive error on function or assosciate items #19284
Comments
There is no error or warning from |
Those are |
I run I open vscode logs for rust-analyzer, here is related configuration part:
|
What's your rust-analyzer config in settings.json (user and workspace)? |
In my user vscode settings.json rust-analyzer related contains: "rust-analyzer.restartServerOnConfigChange": true,
"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.diagnostics.enable": false,
"rust-analyzer.signatureInfo.documentation.enable": false,
"rust-analyzer.lru.capacity": 256,
"rust-analyzer.trace.server": "verbose",
"rust-analyzer.cargo.features": "all",
"rust-analyzer.checkOnSave": true,
"rust-analyzer.inlayHints.maxLength": 6,
"rust-analyzer.cachePriming.numThreads": 6,
"rust-analyzer.showRequestFailedErrorNotification": false,
"rust-analyzer.cargo.targetDir": true,
"rust-analyzer.testExplorer": true,
"rust-analyzer.assist.termSearch.borrowcheck": false,
"rust-analyzer.workspace.symbol.search.kind": "all_symbols",
"rust-analyzer.completion.postfix.enable": false,
"rust-analyzer.completion.callable.snippets": "none", I have some setting in the project dir {
"rust-analyzer.check.invocationStrategy": "per_workspace",
"rust-analyzer.checkOnSave": true,
"rust-analyzer.trace.server": "verbose",
"rust-analyzer.diagnostics.enable": false,
"rust-analyzer.cargo.features": [],
"rust-analyzer.check.allTargets": true,
"rust-analyzer.check.features": [],
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true,
},
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
"test/Cargo.toml",
"./benches/Cargo.toml",
"./shared/Cargo.toml",
"./script/Cargo.toml",
],
"rust-analyzer.cargo.autoreload": true,
"rust-analyzer.cargo.buildScripts.invocationStrategy": "per_workspace",
"rust-analyzer.cargo.targetDir": true,
"search.exclude": {
"**/.git": true,
"**/llvm-project": true,
"**/tmp": true,
"**/test/vendor": true,
"**/util/rich-indexer/src/tests/": true,
"**/docs/ckb_rpc_openrpc": true,
},
"githubPullRequests.remotes": [
"upstream"
],
"chat.editor.fontWeight": "default",
"editor.fontWeight": "448",
} |
rust-analyzer version v0.3.2330, there is an error like this:
but I can jump to the definition of this function, means rust-analyzer actually knows function
new_at
, why is there still an error?seems it comes from rustc output:
from the code there is no difference in accessibility:
The text was updated successfully, but these errors were encountered: