Skip to content

Commit 9c4898e

Browse files
committed
address review comments
1 parent c72a979 commit 9c4898e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ pub struct LocalDecl<'tcx> {
491491
/// The *lexical* visibility scope the local is defined
492492
/// in. If the local was defined in a let-statement, this
493493
/// is *within* the let-statement, rather than outside
494-
/// of iit.
494+
/// of it.
495495
pub lexical_scope: VisibilityScope,
496496
}
497497

src/librustc_driver/driver.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,10 +1005,6 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
10051005
// What we need to run borrowck etc.
10061006

10071007
passes.push_pass(MIR_VALIDATED, mir::transform::qualify_consts::QualifyAndPromoteConstants);
1008-
1009-
// FIXME: ariel points SimplifyBranches should run after
1010-
// mir-borrowck; otherwise code within `if false { ... }` would
1011-
// not be checked.
10121008
passes.push_pass(MIR_VALIDATED, mir::transform::simplify::SimplifyCfg::new("qualify-consts"));
10131009
passes.push_pass(MIR_VALIDATED, mir::transform::nll::NLL);
10141010

0 commit comments

Comments
 (0)