rust/crates/ide_completion/src
Florian Diebold 4ed5fe1554 Fix assoc type shorthand from method bounds
In code like this:
```rust
impl<T> Option<T> {
    fn as_deref(&self) -> T::Target where T: Deref {}
}
```

when trying to resolve the associated type `T::Target`, we were only
looking at the bounds on the impl (where the type parameter is defined),
but the method can add additional bounds that can also be used to refer
to associated types. Hence, when resolving such an associated type, it's
not enough to just know the type parameter T, we also need to know
exactly where we are currently.

This fixes #11364 (beta apparently switched some bounds around).
2022-02-03 13:15:02 +01:00
..
completions Fix assoc type shorthand from method bounds 2022-02-03 13:15:02 +01:00
render feat: Deprioritize completions of private but editable definitions 2022-02-02 02:05:49 +01:00
tests Cleanup Completions api a bit 2022-02-02 12:19:43 +01:00
completions.rs Cleanup Completions api a bit 2022-02-02 12:19:43 +01:00
config.rs
context.rs Cleanup Completions api a bit 2022-02-02 12:19:43 +01:00
item.rs feat: Deprioritize completions of private but editable definitions 2022-02-02 02:05:49 +01:00
lib.rs feat: Add very simplistic ident completion for format_args! macro input 2022-01-15 12:23:26 +01:00
patterns.rs match_ast! takes a pattern to allow underscore usage 2021-12-14 12:44:31 +01:00
render.rs feat: Deprioritize completions of private but editable definitions 2022-02-02 02:05:49 +01:00
snippet.rs fix: Complete functions and methods from block level impls 2022-02-01 23:29:40 +01:00
tests.rs