Skip to content

Commit 22b3175

Browse files
zackmdavisnikomatsakis
authored andcommitted
region_infer: BitMatrix representation of region values
This should be more efficient than allocating two BTreeSets for every region variable?—as it is written in rust-lang#45670.
1 parent a9cb25b commit 22b3175

File tree

2 files changed

+184
-154
lines changed

2 files changed

+184
-154
lines changed

Diff for: src/librustc_mir/borrow_check/nll/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn dump_mir_results<'a, 'gcx, 'tcx>(
160160
match pass_where {
161161
// Before the CFG, dump out the values for each region variable.
162162
PassWhere::BeforeCFG => for region in regioncx.regions() {
163-
writeln!(out, "| {:?}: {:?}", region, regioncx.region_value(region))?;
163+
writeln!(out, "| {:?}: {}", region, regioncx.region_value_str(region))?;
164164
},
165165

166166
// Before each basic block, dump out the values

0 commit comments

Comments
 (0)