Skip to content

Commit 67153bb

Browse files
committed
---
yaml --- r: 3468 b: refs/heads/master c: 76b755f h: refs/heads/master v: v3
1 parent 424d8d0 commit 67153bb

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 88447a47c08a3903fc6dc46863724745a923597a
2+
refs/heads/master: 76b755f9adca5a33f30271ee5bca8380763f5e4a

trunk/src/comp/middle/tstate/auxiliary.rs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,9 @@ fn first_difference_string(&fn_ctxt fcx, &tritv::t expected, &tritv::t actual)
9999
let str s = "";
100100
auto done = false;
101101
for (norm_constraint c in constraints(fcx)) {
102-
if (!done) {
103-
if (tritv_get(expected, c.bit_num) == ttrue &&
104-
tritv_get(actual, c.bit_num) != ttrue) {
105-
/*
106-
FIXME
107-
for fun, try either:
108-
* "ret s" after the assignment to s
109-
or
110-
* using break here
111-
*/
112-
113-
s = constraint_to_str(fcx.ccx.tcx, c.c);
114-
done = true;
115-
}
102+
if (tritv_get(expected, c.bit_num) == ttrue &&
103+
tritv_get(actual, c.bit_num) != ttrue) {
104+
ret constraint_to_str(fcx.ccx.tcx, c.c);
116105
}
117106
}
118107
ret s;

0 commit comments

Comments
 (0)