@@ -493,8 +493,8 @@ ERROR(cannot_convert_yield_value_protocol,none,
493493ERROR(cannot_convert_yield_value_nil,none,
494494 " nil is not compatible with expected yield type %0" , (Type))
495495
496- ERROR(cannot_convert_forget_value ,none,
497- " cannot convert value of type %0 to expected forget type %1" ,
496+ ERROR(cannot_convert_discard_value ,none,
497+ " cannot convert value of type %0 to expected discard type %1" ,
498498 (Type,Type))
499499
500500ERROR(cannot_convert_closure_result,none,
@@ -4609,30 +4609,30 @@ ERROR(opaque_type_var_no_underlying_type,none,
46094609
46104610
46114611// ------------------------------------------------------------------------------
4612- // MARK: Forget Statement
4612+ // MARK: Discard Statement
46134613// ------------------------------------------------------------------------------
4614- ERROR(forget_wrong_context_decl ,none,
4615- " 'forget ' statement cannot appear in %0" ,
4614+ ERROR(discard_wrong_context_decl ,none,
4615+ " 'discard ' statement cannot appear in %0" ,
46164616 (DescriptiveDeclKind))
4617- ERROR(forget_no_deinit ,none,
4618- " 'forget ' has no effect for type %0 unless it has a deinitializer" ,
4617+ ERROR(discard_no_deinit ,none,
4618+ " 'discard ' has no effect for type %0 unless it has a deinitializer" ,
46194619 (Type))
4620- ERROR(forget_wrong_context_closure ,none,
4621- " 'forget ' statement cannot appear in closure" ,
4620+ ERROR(discard_wrong_context_closure ,none,
4621+ " 'discard ' statement cannot appear in closure" ,
46224622 ())
4623- ERROR(forget_wrong_context_misc ,none,
4624- " 'forget ' statement cannot appear in this context" ,
4623+ ERROR(discard_wrong_context_misc ,none,
4624+ " 'discard ' statement cannot appear in this context" ,
46254625 ())
4626- ERROR(forget_wrong_context_copyable ,none,
4627- " 'forget ' statement can only appear in noncopyable type's member" ,
4626+ ERROR(discard_wrong_context_copyable ,none,
4627+ " 'discard ' statement can only appear in noncopyable type's member" ,
46284628 (DescriptiveDeclKind))
4629- ERROR(forget_wrong_context_nonconsuming ,none,
4630- " 'forget ' statement can only appear in consuming %0" ,
4629+ ERROR(discard_wrong_context_nonconsuming ,none,
4630+ " 'discard ' statement can only appear in consuming %0" ,
46314631 (DescriptiveDeclKind))
4632- ERROR(forget_wrong_not_self ,none,
4633- " you can only forget 'self'" , ())
4634- ERROR(forget_wrong_module ,none,
4635- " can only 'forget ' from the same module defining type %0" ,
4632+ ERROR(discard_wrong_not_self ,none,
4633+ " you can only discard 'self'" , ())
4634+ ERROR(discard_wrong_module ,none,
4635+ " can only 'discard ' from the same module defining type %0" ,
46364636 (Type))
46374637
46384638// ------------------------------------------------------------------------------
0 commit comments