]> git.lizzy.rs Git - rust.git/commit
Auto merge of #47957 - bobtwinkles:fix_mir_consts, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 7 Feb 2018 14:54:15 +0000 (14:54 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Feb 2018 14:54:15 +0000 (14:54 +0000)
commitfee39ba8bd98f5b93c60de51336830fa7f0b9d97
tree00127a3bc17f717ab08c2951c7ccc81d02b3a884
parent4f93357d3b8938dfe439329c43c1e4f919a70869
parente99f8fcbc5ea4cf839575bc7ca56151147346a54
Auto merge of #47957 - bobtwinkles:fix_mir_consts, r=nikomatsakis

[NLL] Improve DefiningTy::Const

Fixes #47590 by fixing the way DefiningTy represents constants. Previously, constants were represented using just the type of the variable. However, this will fail to capture early-bound regions as NLL inference vars, resulting in an ICE when we try to compute region VIDs a little bit later in the universal
region resolution process. (ref #47590)