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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issues Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assign-to-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
assign-to-method.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
field-method-suggestion-using-return-ty.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
field-method-suggestion-using-return-ty.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-one-trait-unknown-int-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-one-trait-unknown-int-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-cross-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-cross-crate.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-bounds.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-impls2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-impls2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-impls.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-from-impls.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-with-default-method.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-ambig-two-traits-with-default-method.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-argument-inference-associated-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-err-msg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-err-msg.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-fail.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-lint-fail.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-lint-fail.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-subst-index.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-unresolved.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args-unresolved.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-lifetime-args.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-type-binding.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-call-type-binding.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-deref-to-same-trait-object-with-separate-params.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-deref-to-same-trait-object-with-separate-params.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-early-bound-lifetimes-on-self.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-lookup-order.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-macro-backtrace.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-macro-backtrace.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-missing-call.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-missing-call.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-mut-self-modifies-mut-slice-lvalue.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-normalize-bounds-issue-20604.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-not-found-generic-arg-elision.stderr Tweak output 2023-01-11 19:31:34 +00:00
method-on-ambiguous-numeric-type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-on-ambiguous-numeric-type.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-path-in-pattern.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-path-in-pattern.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-probe-no-guessing-dyn-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-projection.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-recursive-blanket-impl.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-resolvable-path-in-pattern.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-resolvable-path-in-pattern.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-aux1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-aux2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg-trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-self-arg.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-trait-object-with-hrtb.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-two-trait-defer-resolution-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-two-trait-defer-resolution-2.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-two-traits-distinguished-via-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
method-where-clause.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00