about summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic_const_exprs/issue-72787.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-35/+0
2022-07-01Don't point at Self type if we can't find an infer variable in ambiguous ↵Michael Goulet-2/+2
trait predicate
2021-11-27Only check for errors in predicate when skipping impl assemblyAaron Hill-1/+0
Prior to PR #91205, checking for errors in the overall obligation would check checking the `ParamEnv`, due to an incorrect `super_visit_with` impl. With this bug fixed, we will now bail out of impl candidate assembly if the `ParamEnv` contains any error types. In practice, this appears to be overly conservative - when an error occurs early in compilation, we end up giving up early for some predicates that we could have successfully evaluated without overflow. By only checking for errors in the predicate itself, we avoid causing additional spurious 'type annotations needed' errors after a 'real' error has already occurred. With this PR, the diagnostic changes caused by PR #91205 are reverted.
2021-11-25Visit `param_env` field in Obligation's `TypeFoldable` implAaron Hill-0/+1
This oversight appears to have gone unnoticed for a long time without causing issues, but it should still be fixed.
2021-08-30`feature(const_generics)` -> `feature(const_param_types)`lcnr-0/+35