Skip to content

Commit

Permalink
fix a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 29, 2020
1 parent 4a90a58 commit 51cec58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_mir/src/transform/promote_consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ impl<'tcx> Validator<'_, 'tcx> {
self.validate_place(place_simplified)?;

// Check that the reference is fine (using the original place!).
// (Needs to come after `validate_local` to avoid ICEs.)
// (Needs to come after `validate_place` to avoid ICEs.)
self.validate_ref(*kind, place)?;
}

Expand Down

0 comments on commit 51cec58

Please sign in to comment.