We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d8fbe commit cd9ec27Copy full SHA for cd9ec27
src/librustc_mir/borrow_check/nll/type_check/liveness/polonius.rs
@@ -93,15 +93,15 @@ pub(super) fn populate_access_facts(
93
debug!("populate_var_liveness_facts()");
94
95
if let Some(facts) = typeck.borrowck_context.all_facts.as_mut() {
96
- UseFactsExtractor {
+ let mut extractor = UseFactsExtractor {
97
var_defined: &mut facts.var_defined,
98
var_used: &mut facts.var_used,
99
var_drop_used: drop_used,
100
path_accessed_at: &mut facts.path_accessed_at,
101
location_table,
102
move_data,
103
- }
104
- .visit_body(body);
+ };
+ extractor.visit_body(body);
105
106
facts.var_drop_used.extend(drop_used.iter().map(|&(local, location)| {
107
(local, location_table.mid_index(location))
0 commit comments