about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-24 21:07:41 +0000
committerbors <bors@rust-lang.org>2015-04-24 21:07:41 +0000
commitf9e53c7f2c8285f3422ac7ac091349ce572c4baa (patch)
tree95cdfd97e8117587b1d9cc0d5ba408b6aac2746d /src/rustllvm/RustWrapper.cpp
parent2214860d4a979fe24d935277a74bd4d67e9bdb9f (diff)
parent55ffd2e986bf86e313c24cd73928b1af612c8953 (diff)
downloadrust-f9e53c7f2c8285f3422ac7ac091349ce572c4baa.tar.gz
rust-f9e53c7f2c8285f3422ac7ac091349ce572c4baa.zip
Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix
Rather than storing the relations between free-regions in a global
table, introduce a `FreeRegionMap` data structure. regionck computes the
`FreeRegionMap` for each fn and stores the result into the tcx so that
borrowck can use it (this could perhaps be refactored to have borrowck
recompute the map, but it's a bid tedious to recompute due to the
interaction of closures and free fns). The main reason to do this is
because of #22779 -- using a global table was incorrect because when
validating impl method signatures, we want to use the free region
relationships from the *trait*, not the impl.

Fixes #22779.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions