]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #73965 - davidtwco:issue-73886-non-primitive-slice-cast, r=estebank
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 14 Jul 2020 14:38:58 +0000 (07:38 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 14:38:58 +0000 (07:38 -0700)
commit6a4faa2da18330c067babb6acf9041c599c4ad27
treee25beefd7f235a24a6f4afe2bb65f6933f83a0dc
parent905c4e05e1355854c0c63099c70dc1359a3accc7
parentbddb266089deb0cb879caeff1bb9aa860746e062
Rollup merge of #73965 - davidtwco:issue-73886-non-primitive-slice-cast, r=estebank

typeck: check for infer before type impls trait

Fixes #73886.

This PR checks that the target type of the cast (an error related to which is being reported) does not have types to be inferred before checking if it implements the `From` trait.

r? @estebank