Skip to content

Commit

Permalink
Rollup merge of rust-lang#59601 - kenta7777:typo-fix, r=Centril
Browse files Browse the repository at this point in the history
Fix small typo

This PR fixes a small typo in `eq()` comments.
  • Loading branch information
Centril committed Apr 1, 2019
2 parents 249cf42 + 656d4c3 commit c5045e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ impl<'a, 'mir, 'tcx> Eq for EvalSnapshot<'a, 'mir, 'tcx>
impl<'a, 'mir, 'tcx> PartialEq for EvalSnapshot<'a, 'mir, 'tcx>
{
fn eq(&self, other: &Self) -> bool {
// FIXME: This looks to be a *ridicolously expensive* comparison operation.
// FIXME: This looks to be a *ridiculously expensive* comparison operation.
// Doesn't this make tons of copies? Either `snapshot` is very badly named,
// or it does!
self.snapshot() == other.snapshot()
Expand Down

0 comments on commit c5045e2

Please sign in to comment.