Change borrow debugging so it is disabled by -O

This commit is contained in:
Niko Matsakis
2013-05-03 05:42:00 -04:00
parent 9bded76260
commit 34024353e8
7 changed files with 129 additions and 73 deletions

View File

@@ -24,7 +24,6 @@
#define RUST_SEED "RUST_SEED"
#define RUST_POISON_ON_FREE "RUST_POISON_ON_FREE"
#define RUST_DEBUG_MEM "RUST_DEBUG_MEM"
#define RUST_DEBUG_BORROWS "RUST_DEBUG_BORROWS"
#if defined(__WIN32__)
static int
@@ -131,7 +130,6 @@ load_env(int argc, char **argv) {
env->argc = argc;
env->argv = argv;
env->debug_mem = getenv(RUST_DEBUG_MEM) != NULL;
env->debug_borrows = getenv(RUST_DEBUG_BORROWS) != NULL;
return env;
}