-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-rustcissues regarding the rustc codebase and rustc private cratesissues regarding the rustc codebase and rustc private cratesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug
Description
RA recently started showing type errors in well-typed Rust code in the Rust compiler:
- This triggers E0308
expected &IndexSlice<{unknown}, Operand<'_>>, found &IndexVec<{unknown}, Operand<'_>>
- This triggers E0107
expected 1 argument, found 0
- This (and similar code later that file) triggers E0308
expected &LayoutError<'_>, found LayoutError<'_>
rust-analyzer version: rust-analyzer version: 0.3.1599-standalone
rustc version: rustc bootstrap
relevant settings:
// user settings
"rust-analyzer.lens.enable": false,
"rust-analyzer.cachePriming.enable": false,
"rust-analyzer.cargo.buildScripts.useRustcWrapper": false,
"rust-analyzer.diagnostics.disabled": [
"unlinked-file", // I guess for "normal" projects unlinked files are strange, for me they are common
"unresolved-module", // https://github.com/rust-lang/rust-analyzer/issues/9173
"type-mismatch", // https://github.com/rust-lang/rust-analyzer/issues/1109
],
// workspace settings
"rust-analyzer.rustc.source": "./Cargo.toml",
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
"./src/bootstrap/Cargo.toml"
],
"rust-analyzer.checkOnSave.overrideCommand": [
"./x.sh",
"check",
"--json-output",
"library/std",
"compiler/rustc",
//"compiler/rustc_codegen_cranelift",
"src/tools/miri",
],
"rust-analyzer.rustfmt.overrideCommand": [
"./build/host/rustfmt/bin/rustfmt",
"--edition=2021",
],
// These just make everything way too slow.
"rust-analyzer.cargo.buildScripts.overrideCommand": ["false"],
"rust-analyzer.cargo.buildScripts.enable": false,
"rust-analyzer.procMacro.enable": false,
EFanZh
Metadata
Metadata
Assignees
Labels
A-rustcissues regarding the rustc codebase and rustc private cratesissues regarding the rustc codebase and rustc private cratesA-tytype system / type inference / traits / method resolutiontype system / type inference / traits / method resolutionC-bugCategory: bugCategory: bug