rust/src/test/ui/lifetimes
Esteban Kuber 6b9d910639 Point at source of trait bound obligations in more places
Be more thorough in using `ItemObligation` and `BindingObligation` when
evaluating obligations so that we can point at trait bounds that
introduced unfulfilled obligations. We no longer incorrectly point at
unrelated trait bounds (`substs-ppaux.verbose.stderr`).

In particular, we now point at trait bounds on method calls.

We no longer point at "obvious" obligation sources (we no longer have a
note pointing at `Trait` saying "required by a bound in `Trait`", like
in `associated-types-no-suitable-supertrait*`).

Address part of #89418.
2021-11-20 18:54:31 +00:00
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
lifetime-errors Add beginner friendly lifetime elision hint to E0623 2021-11-03 20:10:44 +01:00
borrowck-let-suggestion.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
borrowck-let-suggestion.stderr Use larger span for adjustments on method calls 2021-09-25 10:00:41 -05:00
issue-26638.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-26638.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-34979.rs Add test for #34979 2020-05-07 02:22:08 +09:00
issue-34979.stderr Point at source of trait bound obligations in more places 2021-11-20 18:54:31 +00:00
issue-70917-lifetimes-in-fn-def.rs outlives: ignore lifetimes shallowly found in ty::FnDefs. 2020-04-16 23:18:44 +03:00
issue-77175.rs test for issue #77175 2021-09-04 11:49:13 -07:00
issue-79187-2.nll.stderr Improve cause information for NLL higher-ranked errors 2021-09-27 10:23:45 -05:00
issue-79187-2.rs Provide more information for HRTB lifetime errors involving closures 2021-01-12 13:53:13 -08:00
issue-79187-2.stderr Remove textual span from diagnostic string 2021-10-13 10:53:44 +00:00
issue-79187.nll.stderr Improve cause information for NLL higher-ranked errors 2021-09-27 10:23:45 -05:00
issue-79187.rs Report "nice" placeholder errors more often 2021-02-09 22:59:32 +00:00
issue-79187.stderr Print closure signatures when reporting placeholder errors 2021-02-09 23:00:33 +00:00
issue-83737-binders-across-types.rs Don't concatenate binders across types 2021-04-05 00:41:08 -04:00
issue-83737-erasing-bound-vars.rs Add HAS_RE_LATE_BOUND if there are bound vars 2021-04-28 10:18:52 -04:00
issue-83753-invalid-associated-type-supertrait-hrtb.rs Fix a couple resolve bugs from binder refactor 2021-04-06 17:10:15 -04:00
issue-83753-invalid-associated-type-supertrait-hrtb.stderr Fix a couple resolve bugs from binder refactor 2021-04-06 17:10:15 -04:00
issue-83907-invalid-fn-like-path.rs Fix a couple resolve bugs from binder refactor 2021-04-06 17:10:15 -04:00
issue-83907-invalid-fn-like-path.stderr Fix a couple resolve bugs from binder refactor 2021-04-06 17:10:15 -04:00
issue-84398.rs Deduplicate ParamCandidates with the same value except for bound vars 2021-04-25 15:11:49 -04:00
issue-84604.rs Add HAS_RE_LATE_BOUND if there are bound vars 2021-04-28 10:18:52 -04:00
issue-90170-elision-mismatch.fixed Add beginner friendly lifetime elision hint to E0623 2021-11-03 20:10:44 +01:00
issue-90170-elision-mismatch.nll.stderr Add beginner friendly lifetime elision hint to E0623 2021-11-03 20:10:44 +01:00
issue-90170-elision-mismatch.rs Add beginner friendly lifetime elision hint to E0623 2021-11-03 20:10:44 +01:00
issue-90170-elision-mismatch.stderr Add beginner friendly lifetime elision hint to E0623 2021-11-03 20:10:44 +01:00
issue-90600-expected-return-static-indirect.nll.stderr Improve diagnostics when a static lifetime is expected 2021-11-14 12:04:39 +11:00
issue-90600-expected-return-static-indirect.rs Improve diagnostics when a static lifetime is expected 2021-11-14 12:04:39 +11:00
issue-90600-expected-return-static-indirect.stderr Improve diagnostics when a static lifetime is expected 2021-11-14 12:04:39 +11:00
lifetime-bound-will-change-warning.nll.stderr Note specific regions involved in 'borrowed data escapes' error 2021-10-05 13:25:03 -05:00
lifetime-bound-will-change-warning.rs Update ui test suite to use dyn 2019-05-29 00:57:31 -04:00
lifetime-bound-will-change-warning.stderr Remove textual span from diagnostic string 2021-10-13 10:53:44 +00:00
lifetime-doesnt-live-long-enough.rs Remove licenses 2018-12-25 21:08:33 -07:00
lifetime-doesnt-live-long-enough.stderr Suggest boxing or borrowing unsized fields 2020-07-14 10:50:24 -07:00
lifetime-elision-return-type-requires-explicit-lifetime.rs Remove licenses 2018-12-25 21:08:33 -07:00
lifetime-elision-return-type-requires-explicit-lifetime.stderr Use more accurate spans when proposing adding lifetime to item 2021-08-18 10:25:15 +00:00
lifetime-elision-return-type-trait.rs distinguish object-lifetime-default elision from other elision 2019-08-19 13:50:42 -04:00
lifetime-elision-return-type-trait.stderr path trimming: ignore type aliases 2021-02-06 12:03:48 +02:00
lifetime-mismatch-between-trait-and-impl.rs review comments 2019-10-29 10:19:58 -07:00
lifetime-mismatch-between-trait-and-impl.stderr nice_region_error: Include lifetime placeholders in error output 2021-10-22 15:26:20 -07:00
lifetime-no-keyword.rs Remove licenses 2018-12-25 21:08:33 -07:00
lifetime-no-keyword.stderr Update tests 2019-03-11 23:10:26 +03:00
undeclared-lifetime-used-in-debug-macro-issue-70152.rs Account for macros when suggesting adding lifetime 2021-03-02 18:24:13 -08:00
undeclared-lifetime-used-in-debug-macro-issue-70152.stderr Use boxed slice instead of BTreeSet. 2021-09-12 16:33:17 +02:00
unnamed-closure-doesnt-life-long-enough-issue-67634.rs Use an 'approximate' universal upper bound when reporting region errors 2020-06-27 14:01:59 -04:00
unnamed-closure-doesnt-life-long-enough-issue-67634.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00