]> git.lizzy.rs Git - rust.git/commit
rollup merge of #23119: nikomatsakis/issue-23116-ref-mut
authorAlex Crichton <alex@alexcrichton.com>
Mon, 23 Mar 2015 22:07:19 +0000 (15:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 23 Mar 2015 22:07:19 +0000 (15:07 -0700)
commitad41e7cd7a3d1969e666508d7e4a3ba305cee2ec
tree2a9293001f152eca7135160baeae66ea8880c8a9
parentd6054e47719a3dbc554c3119310334fe4b18c482
parent45fae882568d9bf36ade39f210a2721d05e556dd
rollup merge of #23119: nikomatsakis/issue-23116-ref-mut

Don't allow upcasting to a supertype in the type of the match discriminant. Fixes #23116.

This is a [breaking-change] in that it closes a type hole that previously existed.

r? @pnkfelix