diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2016-09-13 18:31:26 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-09-14 11:04:39 -0400 |
| commit | 6353e30bb2d7968332217c04ac25e0800500fb33 (patch) | |
| tree | cb7e73aa0816f4ad143ccf54adf1cbe4e74e3830 /src/rustllvm/RustWrapper.cpp | |
| parent | c87ba3f1222ba20d491e8ed76a04977283280742 (diff) | |
| download | rust-6353e30bb2d7968332217c04ac25e0800500fb33.tar.gz rust-6353e30bb2d7968332217c04ac25e0800500fb33.zip | |
clear obligations-added flag with nested fulfillcx
This flag is a debugging measure designed to detect cases where we start a snapshot, create type variables, register obligations involving those type variables in the fulfillment cx, and then have to unroll the snapshot, leaving "dangling type variables" behind. HOWEVER, in some cases the flag is wrong. In particular, we sometimes create a "mini-fulfilment-cx" in which we enroll obligations. As long as this fulfillment cx is fully drained before we return, this is not a problem, as there won't be any escaping obligations in the main cx. So we add a fn to save/restore the flag.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
