Skip to content

Commit 0f5c99d

Browse files
committed
Add hack around data corruption. #4054
1 parent adaa360 commit 0f5c99d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc/middle/privacy.rs

+3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ fn check_crate(tcx: ty::ctxt, method_map: &method_map, crate: @ast::crate) {
148148
149149
visit::visit_mod(the_module, span, node_id, method_map, visitor);
150150
151+
// FIXME #4054: n_added gets corrupted without this log statement
152+
debug!("%i", n_added);
153+
151154
for n_added.times {
152155
ignore(privileged_items.pop());
153156
}

0 commit comments

Comments
 (0)