diff options
| author | YI <uuuuuu@protonmail.com> | 2020-02-25 18:15:23 +0800 |
|---|---|---|
| committer | YI <uuuuuu@protonmail.com> | 2020-04-08 11:52:29 +0800 |
| commit | 3ae974f025d4376c720e3b2773ccd2c201f098dc (patch) | |
| tree | 79b3145b4cc4942eac197ca3b4a9f72481112f95 /src/liballoc/tests | |
| parent | 39b62533c7f9d0581a6ea9b9fc2cc51f21c3b5b0 (diff) | |
| download | rust-3ae974f025d4376c720e3b2773ccd2c201f098dc.tar.gz rust-3ae974f025d4376c720e3b2773ccd2c201f098dc.zip | |
fix misleading type annotation diagonstics
This solves the method call part of issue https://github.com/rust-lang/rust/issues/69455 I added a `target_span` field so as to pin down the exact location of the error. We need a dedicated field `found_exact_method_call` to prioritize situations like the test case `issue-69455.rs`. If we reuse `found_method_call`, `found_local_pattern` will show up first. We can not move `found_method_call` up, it is undesirable in various situations.
Diffstat (limited to 'src/liballoc/tests')
0 files changed, 0 insertions, 0 deletions
