]> git.lizzy.rs Git - rust.git/commit
Add result sanity check to `is_to_be_inferred`.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 17 Apr 2014 18:36:19 +0000 (20:36 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 17 Apr 2014 18:40:51 +0000 (20:40 +0200)
commit3099451020e8ef8dc4c5799e82f926cc364c7034
tree952ac6afc7fb0195b6977745557871a5df1ee229
parent364d82e7f3edb03031db9221be107d146615d610
Add result sanity check to `is_to_be_inferred`.

This version of `is_to_be_inferred` double-checks the result from
`inferred_map` by querying the `named_region_map` and `ast_map` and
then asserts that the `inferred_map` state is consistent with its own
findings.  (See issue 13261 for further discussion of the approaches).
src/librustc/middle/typeck/variance.rs