about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-09-13 18:31:26 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-09-14 11:04:39 -0400
commit6353e30bb2d7968332217c04ac25e0800500fb33 (patch)
treecb7e73aa0816f4ad143ccf54adf1cbe4e74e3830 /src/rustllvm/RustWrapper.cpp
parentc87ba3f1222ba20d491e8ed76a04977283280742 (diff)
downloadrust-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