@@ -232,7 +232,7 @@ impl<'a, 'tcx> SigDropChecker<'a, 'tcx> {
232232enum SigDropHolder {
233233 /// No values with significant drop present in this expression.
234234 ///
235- /// Expressions that we've emited lints do not count.
235+ /// Expressions that we've emitted lints do not count.
236236 None ,
237237 /// Some field in this expression references to values with significant drop.
238238 ///
@@ -426,7 +426,7 @@ fn ty_has_erased_regions(ty: Ty<'_>) -> bool {
426426
427427impl < ' a , ' tcx > Visitor < ' tcx > for SigDropHelper < ' a , ' tcx > {
428428 fn visit_expr ( & mut self , ex : & ' tcx Expr < ' _ > ) {
429- // We've emited a lint on some neighborhood expression. That lint will suggest to move out the
429+ // We've emitted a lint on some neighborhood expression. That lint will suggest to move out the
430430 // _parent_ expression (not the expression itself). Since we decide to move out the parent
431431 // expression, it is pointless to continue to process the current expression.
432432 if self . sig_drop_holder == SigDropHolder :: Moved {
@@ -450,7 +450,7 @@ impl<'a, 'tcx> Visitor<'tcx> for SigDropHelper<'a, 'tcx> {
450450 ExprKind :: Assign ( lhs, _, _) | ExprKind :: AssignOp ( _, lhs, _)
451451 if lhs. hir_id == ex. hir_id && self . sig_drop_holder == SigDropHolder :: Moved =>
452452 {
453- // Never move out only the assignee. Instead, we should always move out the whole assigment .
453+ // Never move out only the assignee. Instead, we should always move out the whole assignment .
454454 self . replace_current_sig_drop ( parent_ex. span , true , 0 ) ;
455455 } ,
456456 _ => {
0 commit comments