Debian testing, vscode up to date.
Rustc nightly.
When using RA with any version post 0.3.2896, I have some troubles with some completion.
For example
vec.push(MyEnum::MyEnumElement);
Up to 0.3.2896, when asking for the completion vec.push() inside the parentheses it will propose the MyEnum variant.
Past this version, I get in the output panel:
thread 'Worker3' (127983) panicked at crates/hir/src/lib.rs:6590:20:
failed to unify type owners
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: core::option::expect_failed
3: hir::TypeOwnerId::must_unify
4: hir::Type::could_unify_with_deeply
5: hir::term_search::LookupTable::find
6: hir::term_search::term_search
7: ide_completion::completions::complete_name_ref
8: ide_completion::completions
9: ide::Analysis::completions
10: rust_analyzer::handlers::request::handle_completion
11: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
additional context:
0:
version: 0.3.2929-standalone
request: textDocument/completion CompletionParams {
text_document_position: TextDocumentPositionParams {
text_document: TextDocumentIdentifier {
uri: Url {
scheme: "file",
cannot_be_a_base: false,
username: "",
password: None,
host: None,
port: None,
path: "my_path",
query: None,
fragment: None,
},
},
position: Position {
line: 2826,
character: 41,
},
},
work_done_progress_params: WorkDoneProgressParams {
work_done_token: None,
},
partial_result_params: PartialResultParams {
partial_result_token: None,
},
context: Some(
CompletionContext {
trigger_kind: Invoked,
trigger_character: None,
},
),
}
[Error - 21:37:50] Request textDocument/completion failed.
Message: request handler panicked: failed to unify type owners
Code: -32603
I modified the file path for the bug report.
The only cure is to revert back to 0.3.2896.
Debian testing, vscode up to date.
Rustc nightly.
When using RA with any version post 0.3.2896, I have some troubles with some completion.
For example
Up to 0.3.2896, when asking for the completion
vec.push()inside the parentheses it will propose the MyEnum variant.Past this version, I get in the output panel:
I modified the file path for the bug report.
The only cure is to revert back to 0.3.2896.