]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #69591 - matthewjasper:query-response-relate, r=nikomatsakis
authorMazdak Farrokhzad <twingoow@gmail.com>
Wed, 11 Mar 2020 09:36:19 +0000 (10:36 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 09:36:19 +0000 (10:36 +0100)
Use TypeRelating for instantiating query responses

`eq` can add constraints to `RegionConstraintData`, which isn't allowed during borrow checking outside of a `CustomTypeOp`. Use `TypeRelating` instead to always push constraints to the obligations list.

closes #69490

1  2 
src/librustc_infer/infer/canonical/query_response.rs