]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41937 - nikomatsakis:issue-41936-variance-coerce-unsized-cycle,...
authorMark Simulacrum <mark.simulacrum@gmail.com>
Tue, 16 May 2017 23:31:49 +0000 (17:31 -0600)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 23:31:49 +0000 (17:31 -0600)
use equality in the coerce-unsized check

This seems both to be a safe, conservative choice, and it sidesteps the cycle in #41849. Note that, before I converted variance into proper queries, we were using a hybrid of subtyping and equality, due to the presence of a flag that forced invariance if variance had not yet been computed. (Also, Coerce Unsized is unstable.)

Fixes #41936.

r? @eddyb


Trivial merge