]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #46192 - arielb1:locally-coherent, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 6 Dec 2017 10:36:09 +0000 (10:36 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 Dec 2017 10:36:09 +0000 (10:36 +0000)
coherence: fix is_knowable logic

A trait-ref that passes the orphan-check rules can still be implemented in a crate downstream from our crate (for example, `LocalType for LocalTrait<_>` might be matched by a `LocalType for LocalTrait<TypeFromDownstreamCrate>`), and this should be known by the `is_knowable`  logic.

Trait selection had a hackfix for this, but it's an hacky fix that does not handle all cases. This patch removes it.

fixes #43355.

r? @nikomatsakis

Needs a crater run


Trivial merge