diff options
| author | bors <bors@rust-lang.org> | 2015-04-24 21:07:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-24 21:07:41 +0000 |
| commit | f9e53c7f2c8285f3422ac7ac091349ce572c4baa (patch) | |
| tree | 95cdfd97e8117587b1d9cc0d5ba408b6aac2746d /src/rustllvm/RustWrapper.cpp | |
| parent | 2214860d4a979fe24d935277a74bd4d67e9bdb9f (diff) | |
| parent | 55ffd2e986bf86e313c24cd73928b1af612c8953 (diff) | |
| download | rust-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
