Repro code:
fn foo() {
let bar = Some("Hello");
bar.unwrap_or_d~efault();
}
Expected: Completion at the cursor should find unwrap_or_default
Observed: Completion finds nothing, because it "can't find the type of an EnumVariant"
The least invasive fix seems to be identifying the call to the enum variant and resolving its parent enum type.
Repro code:
Expected: Completion at the cursor should find
unwrap_or_defaultObserved: Completion finds nothing, because it "can't find the type of an EnumVariant"
The least invasive fix seems to be identifying the call to the enum variant and resolving its parent enum type.