@@ -232,7 +232,7 @@ impl<'a, 'tcx> SigDropChecker<'a, 'tcx> {
232
232
enum SigDropHolder {
233
233
/// No values with significant drop present in this expression.
234
234
///
235
- /// Expressions that we've emited lints do not count.
235
+ /// Expressions that we've emitted lints do not count.
236
236
None ,
237
237
/// Some field in this expression references to values with significant drop.
238
238
///
@@ -426,7 +426,7 @@ fn ty_has_erased_regions(ty: Ty<'_>) -> bool {
426
426
427
427
impl < ' a , ' tcx > Visitor < ' tcx > for SigDropHelper < ' a , ' tcx > {
428
428
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
430
430
// _parent_ expression (not the expression itself). Since we decide to move out the parent
431
431
// expression, it is pointless to continue to process the current expression.
432
432
if self . sig_drop_holder == SigDropHolder :: Moved {
@@ -450,7 +450,7 @@ impl<'a, 'tcx> Visitor<'tcx> for SigDropHelper<'a, 'tcx> {
450
450
ExprKind :: Assign ( lhs, _, _) | ExprKind :: AssignOp ( _, lhs, _)
451
451
if lhs. hir_id == ex. hir_id && self . sig_drop_holder == SigDropHolder :: Moved =>
452
452
{
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 .
454
454
self . replace_current_sig_drop ( parent_ex. span , true , 0 ) ;
455
455
} ,
456
456
_ => {
0 commit comments