]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #40683 - nikomatsakis:incr-comp-coerce-unsized-info, r=eddyb
authorAlex Crichton <alex@alexcrichton.com>
Mon, 27 Mar 2017 20:24:15 +0000 (15:24 -0500)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 27 Mar 2017 22:56:23 +0000 (15:56 -0700)
commit12f6c5019a045eead09b46251173ec3ae558891a
tree161d8ac2fefe949a742f78cd45c29f05e0b4bd3d
parent666bb1959ec072665d2e8765b01dd96127589177
parenta29ae3052aa9c84cecab226b9a1f1fee4e5b78d4
Rollup merge of #40683 - nikomatsakis:incr-comp-coerce-unsized-info, r=eddyb

on-demand-ify `custom_coerce_unsized_kind` and `inherent-impls`

This "on-demand" task both checks for errors and computes the custom unsized kind, if any. This task is only defined on impls of `CoerceUnsized`; invoking it on any other kind of impl results in a bug. This is just to avoid having an `Option`, could easily be changed.

r? @eddyb
src/librustc/dep_graph/dep_node.rs
src/librustc/middle/cstore.rs
src/librustc/ty/maps.rs
src/librustc/ty/mod.rs
src/librustc_metadata/cstore_impl.rs
src/librustc_metadata/encoder.rs