about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-10-22 22:50:10 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-10-26 23:47:52 +0200
commit740e8a3f37f224927269bf7b205b16142d91bf0f (patch)
tree94b10bf3171886d3c26522085a0af10967231177 /src/test/incremental/thinlto
parentb569caf267c595d2c2988941fb39f4718cadfdcc (diff)
downloadrust-740e8a3f37f224927269bf7b205b16142d91bf0f.tar.gz
rust-740e8a3f37f224927269bf7b205b16142d91bf0f.zip
Add the actual chain of projections to `UserTypeProjection`.
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`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions