diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-29 11:50:02 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-06-29 14:28:03 -0700 |
| commit | 76b755f9adca5a33f30271ee5bca8380763f5e4a (patch) | |
| tree | cdcf6dfa8154b885e7c56d2a9076370bb7d90b0a | |
| parent | 88447a47c08a3903fc6dc46863724745a923597a (diff) | |
| download | rust-76b755f9adca5a33f30271ee5bca8380763f5e4a.tar.gz rust-76b755f9adca5a33f30271ee5bca8380763f5e4a.zip | |
Remove workaround for a compiler bug that, I guess, got fixed
| -rw-r--r-- | src/comp/middle/tstate/auxiliary.rs | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/comp/middle/tstate/auxiliary.rs b/src/comp/middle/tstate/auxiliary.rs index 13198788141..bfd2743f7a0 100644 --- a/src/comp/middle/tstate/auxiliary.rs +++ b/src/comp/middle/tstate/auxiliary.rs @@ -99,20 +99,9 @@ fn first_difference_string(&fn_ctxt fcx, &tritv::t expected, &tritv::t actual) let str s = ""; auto done = false; for (norm_constraint c in constraints(fcx)) { - if (!done) { - if (tritv_get(expected, c.bit_num) == ttrue && - tritv_get(actual, c.bit_num) != ttrue) { - /* - FIXME - for fun, try either: - * "ret s" after the assignment to s - or - * using break here - */ - - s = constraint_to_str(fcx.ccx.tcx, c.c); - done = true; - } + if (tritv_get(expected, c.bit_num) == ttrue && + tritv_get(actual, c.bit_num) != ttrue) { + ret constraint_to_str(fcx.ccx.tcx, c.c); } } ret s; |
