1
Fork 0
Commit graph

9 commits

Author SHA1 Message Date
Eric Holk
8fc835831c Update tests after feature stabilization 2022-03-07 08:47:18 -08:00
Michael Goulet
1ab97dbc52 add note suggesting that predicate is satisfied but is not const 2022-01-26 19:09:44 -08:00
Deadbeef
fdf7d01088
Improve selection errors for ~const trait bounds 2022-01-26 00:48:01 +11:00
Michael Goulet
33e5efbd58 adjust tests 2022-01-18 01:46:17 -08:00
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
Michael Howell
8520105464 fix(rustc_typeck): report function argument errors on matching type
Fixes #90101
2021-10-25 12:23:52 -07:00
Esteban Kuber
0a4540b08f fix rebase 2021-09-16 14:01:37 +00:00
Deadbeef
146abdd119
Add another test case + fmt 2021-09-09 05:21:33 +00:00
Deadbeef
49ac725d51
fix precise live drops 2021-09-09 05:21:33 +00:00
Renamed from src/test/ui/rfc-2632-const-trait-impl/const-drop-fail.stderr (Browse further)