“3757f01c9bed7b2fe0d726ac45c754312e2917ea”上不存在“src/librustc_typeck/astconv.rs”
-
由 Niko Matsakis 提交于
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.
6dfeda7d