]> git.lizzy.rs Git - rust.git/commit
rollup merge of #22012: pnkfelix/propagate-container-across-object-cast
authorAlex Crichton <alex@alexcrichton.com>
Tue, 10 Feb 2015 16:41:41 +0000 (08:41 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 10 Feb 2015 16:41:41 +0000 (08:41 -0800)
commitc177da6675e5e0c471101cd98d6a7d9040b0150e
tree0a6e7d14cd3848dbafd96df33418b19a920b7fb0
parent7fcc330ea3a5cbe9b861edf05b74d332b53a64b0
parenta1b3189f4864f1ada755e9ebc2e0ce1ac5bf2e06
rollup merge of #22012: pnkfelix/propagate-container-across-object-cast

Given `<expr> as Box<Trait>`, infer that `Box<_>` is expected type for `<expr>`.

This is useful for addressing fallout from newly proposed box protocol; see #22006 for examples of such fallout, much of which will be unnecessary with this fix.