about summary refs log tree commit diff
path: root/src/test/ui/nll/user-annotations/patterns.stderr
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-189/+0
2022-10-20Update tests to match error message changesb4den-3/+3
2022-06-03Fully stabilize NLLJack Huey-19/+19
2021-10-03Don't suggest replacing region with 'static in NLLAaron Hill-8/+0
Fixes #73159 This is similar to #69350 - if the user didn't initially write out a 'static lifetime, adding 'static in response to a lifetime error is usually the wrong thing to do.
2019-10-27update testsMark Mansi-12/+4
2019-10-27implement outlive suggestionsMark Mansi-0/+16
2019-04-18hide `--explain` hint if error has no extended infoAndy Russell-1/+1
2019-03-11Update testsVadim Petrochenkov-16/+16
2019-01-17Update testsMark Mansi-4/+4
2018-10-26Add test for normalization during field-lookup on patterns with ascribed types.Felix S. Klock II-14/+33
As a drive-by, also added test analogous to existing static_to_a_to_static_through_tuple, but now apply to a struct instead of a tuple.
2018-10-26Add the actual chain of projections to `UserTypeProjection`.Felix S. Klock II-1/+30
Update the existing NLL `patterns.rs` test accordingly. includes changes addressing review feedback: * Added example to docs for `UserTypeProjections` illustrating how we build up multiple projections when descending into a pattern with type ascriptions. * Adapted niko's suggested docs for `UserTypeProjection`. * Factored out `projection_ty` from more general `projection_ty_core` (as a drive-by, made its callback an `FnMut`, as I discovered later that I need that). * Add note to docs that `PlaceTy.field_ty(..)` does not normalize its result. * Normalize as we project out `field_ty`.
2018-10-21Use new region infer errors for explaining borrowsMatthew Jasper-40/+37
This gives at least some explanation for why a borrow is expected to last for a certain free region. Also: * Reports E0373: "closure may outlive the current function" with NLL. * Special cases the case of returning a reference to (or value referencing) a local variable or temporary (E0515). * Special case assigning a reference to a local variable in a closure to a captured variable.
2018-10-10Use the span of the user type for `AscribeUserType`Matthew Jasper-2/+2
Also change the order of the fake read for let and the AscribeUserType, so that we use the better span and message from the fake read in errors.
2018-09-25Change the diagnostic number from 714 to 716.Felix S. Klock II-4/+4
2018-09-25add "temporary value dropped while borrowed" errorMikhail Modin-10/+11
Issue #54131
2018-09-19Update ui testsMatthew Jasper-2/+2
2018-09-10add FIXME related to `ref x` bindingsNiko Matsakis-12/+1
2018-09-10propagate user-ascribes types down onto resulting bindingsNiko Matsakis-13/+45
But only in very simple cases.
2018-09-10expand the patterns test with a bunch more scenariosNiko Matsakis-4/+93
2018-09-10insert `AscribeUserType` for ascriptionsNiko Matsakis-0/+33