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 16a5da7 commit 4901083Copy full SHA for 4901083
compiler/rustc_borrowck/src/nll.rs
@@ -182,11 +182,10 @@ pub(crate) fn compute_regions<'cx, 'tcx>(
182
borrow_set,
183
);
184
185
- let def_id = body.source.def_id();
186
-
187
- // Dump facts if requested.
+ // If requested: dump NLL facts, and run legacy polonius analysis.
188
let polonius_output = all_facts.as_ref().and_then(|all_facts| {
189
if infcx.tcx.sess.opts.unstable_opts.nll_facts {
+ let def_id = body.source.def_id();
190
let def_path = infcx.tcx.def_path(def_id);
191
let dir_path = PathBuf::from(&infcx.tcx.sess.opts.unstable_opts.nll_facts_dir)
192
.join(def_path.to_filename_friendly_no_crate());
0 commit comments