Skip to content

Commit a1ad38f

Browse files
Pass attrs to do_dataflow in new const checker
This is needed to dump graphviz results for the `IndirectlyMutableLocals` analysis.
1 parent 702b45e commit a1ad38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_mir/transform/check_consts/validation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub fn compute_indirectly_mutable_locals<'mir, 'tcx>(
137137
item.tcx,
138138
item.body,
139139
item.def_id,
140-
&[],
140+
&item.tcx.get_attrs(item.def_id),
141141
&dead_unwinds,
142142
old_dataflow::IndirectlyMutableLocals::new(item.tcx, item.body, item.param_env),
143143
|_, local| old_dataflow::DebugFormatted::new(&local),

0 commit comments

Comments
 (0)