diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-04-18 11:23:14 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-04-18 11:35:51 -0400 |
| commit | 6dfeda7d4be690b17bab66968485300b8822f1e6 (patch) | |
| tree | 77ae6540ec3e107f5bff036679a52ee0a6dddbdf /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | fcf637b19f1a94dcf1748b8b29fca100f150eb0a (diff) | |
| download | rust-6dfeda7d4be690b17bab66968485300b8822f1e6.tar.gz rust-6dfeda7d4be690b17bab66968485300b8822f1e6.zip | |
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/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
