rust/tests/ui/methods
Robin Schroer f908f0be5a
Consider doc(alias) when providing typo suggestions
This means that

```rust
impl Foo {
    #[doc(alias = "quux")]
    fn bar(&self) {}
}

fn main() {
    (Foo {}).quux();
}
```

will suggest `bar`. This currently uses the "there is a method with a
similar name" help text, because the point where we choose and emit a
suggestion is different from where we gather the suggestions. Changes
have mainly been made to the latter.

The selection code will now fall back to aliased candidates, but
generally only if there is no candidate that matches based on the
existing Levenshtein methodology.

Fixes #83968.
2023-01-23 10:07:10 +09:00
..
auxiliary
issues
assign-to-method.rs
assign-to-method.stderr
field-method-suggestion-using-return-ty.rs
field-method-suggestion-using-return-ty.stderr
method-ambig-one-trait-unknown-int-type.rs
method-ambig-one-trait-unknown-int-type.stderr
method-ambig-two-traits-cross-crate.rs
method-ambig-two-traits-cross-crate.stderr
method-ambig-two-traits-from-bounds.rs
method-ambig-two-traits-from-bounds.stderr
method-ambig-two-traits-from-impls2.rs
method-ambig-two-traits-from-impls2.stderr
method-ambig-two-traits-from-impls.rs
method-ambig-two-traits-from-impls.stderr
method-ambig-two-traits-with-default-method.rs
method-ambig-two-traits-with-default-method.stderr
method-argument-inference-associated-type.rs
method-call-err-msg.rs
method-call-err-msg.stderr
method-call-lifetime-args-fail.rs
method-call-lifetime-args-fail.stderr
method-call-lifetime-args-lint-fail.rs
method-call-lifetime-args-lint-fail.stderr
method-call-lifetime-args-lint.rs
method-call-lifetime-args-lint.stderr
method-call-lifetime-args-subst-index.rs
method-call-lifetime-args-unresolved.rs
method-call-lifetime-args-unresolved.stderr
method-call-lifetime-args.rs
method-call-lifetime-args.stderr
method-call-type-binding.rs
method-call-type-binding.stderr
method-deref-to-same-trait-object-with-separate-params.rs
method-deref-to-same-trait-object-with-separate-params.stderr
method-early-bound-lifetimes-on-self.rs
method-lookup-order.rs
method-macro-backtrace.rs
method-macro-backtrace.stderr
method-missing-call.rs
method-missing-call.stderr
method-mut-self-modifies-mut-slice-lvalue.rs
method-normalize-bounds-issue-20604.rs
method-not-found-but-doc-alias.rs Consider doc(alias) when providing typo suggestions 2023-01-23 10:07:10 +09:00
method-not-found-but-doc-alias.stderr Consider doc(alias) when providing typo suggestions 2023-01-23 10:07:10 +09:00
method-not-found-generic-arg-elision.rs
method-not-found-generic-arg-elision.stderr Tweak output 2023-01-11 19:31:34 +00:00
method-on-ambiguous-numeric-type.rs
method-on-ambiguous-numeric-type.stderr
method-path-in-pattern.rs
method-path-in-pattern.stderr
method-probe-no-guessing-dyn-trait.rs
method-projection.rs
method-recursive-blanket-impl.rs
method-resolvable-path-in-pattern.rs
method-resolvable-path-in-pattern.stderr
method-self-arg-1.rs
method-self-arg-1.stderr
method-self-arg-2.rs
method-self-arg-2.stderr
method-self-arg-aux1.rs
method-self-arg-aux2.rs
method-self-arg-trait.rs
method-self-arg.rs
method-trait-object-with-hrtb.rs
method-two-trait-defer-resolution-1.rs
method-two-trait-defer-resolution-2.rs
method-two-traits-distinguished-via-where-clause.rs
method-where-clause.rs