]> git.lizzy.rs Git - rust.git/commit
Auto merge of #45723 - sinkuu:ice_45493, r=arielb1
authorbors <bors@rust-lang.org>
Sun, 5 Nov 2017 19:19:59 +0000 (19:19 +0000)
committerbors <bors@rust-lang.org>
Sun, 5 Nov 2017 19:19:59 +0000 (19:19 +0000)
commit3b82e4c74d43fc1273244532c3a90bf9912061cf
tree92926e0b597257e85441e85c1834f8d37e607bc7
parent666687a68cb9c42bf5eadcb2e5e447d7de5190d5
parentafb52e1ca1c8b787a056d382ebd2288a53bdd1a5
Auto merge of #45723 - sinkuu:ice_45493, r=arielb1

Fix MIR inlining panic in generic function

MIR inlining calls `Instance::resolve` with a substs containing param, and `trans_apply_param_substs` panics. ~~This PR fixes it by making `Instance::resolve` return `None` if `substs.has_param_types()`, though I'm not sure if this is a right fix.~~

Fixes #45493.