@@ -795,19 +795,19 @@ ERROR(unspaced_unary_operator,none,
795795 " unary operators must not be juxtaposed; parenthesize inner expression" ,
796796 ())
797797
798- ERROR(use_unresolved_identifier ,none,
799- " use of unresolved %select{identifier| operator}1 %0" , (DeclNameRef, bool ))
800- ERROR(use_unresolved_identifier_corrected ,none,
801- " use of unresolved %select{identifier| operator}1 %0; did you mean '%2'?" ,
798+ ERROR(cannot_find_in_scope ,none,
799+ " cannot %select{find|find operator}1 %0 in scope " , (DeclNameRef, bool ))
800+ ERROR(cannot_find_in_scope_corrected ,none,
801+ " cannot %select{find|find operator}1 %0 in scope ; did you mean '%2'?" ,
802802 (DeclNameRef, bool , StringRef))
803803NOTE(confusable_character,none,
804804 " %select{identifier|operator}0 '%1' contains possibly confused characters; "
805805 " did you mean to use '%2'?" ,
806806 (bool , StringRef, StringRef))
807- ERROR(use_undeclared_type ,none,
808- " use of undeclared type %0" , (DeclNameRef))
809- ERROR(use_undeclared_type_did_you_mean ,none,
810- " use of undeclared type %0; did you mean to use '%1'?" , (DeclNameRef, StringRef))
807+ ERROR(cannot_find_type_in_scope ,none,
808+ " cannot find type %0 in scope " , (DeclNameRef))
809+ ERROR(cannot_find_type_in_scope_did_you_mean ,none,
810+ " cannot find type %0 in scope ; did you mean to use '%1'?" , (DeclNameRef, StringRef))
811811NOTE(note_typo_candidate_implicit_member,none,
812812 " did you mean the implicitly-synthesized %1 '%0'?" , (StringRef, StringRef))
813813NOTE(note_remapped_type,none,
@@ -3669,9 +3669,9 @@ ERROR(continue_not_in_this_stmt,none,
36693669 " 'continue' cannot be used with %0 statements" , (StringRef))
36703670
36713671ERROR(unresolved_label,none,
3672- " use of unresolved label %0" , (Identifier))
3672+ " cannot find label %0 in scope " , (Identifier))
36733673ERROR(unresolved_label_corrected,none,
3674- " use of unresolved label %0; did you mean %1?" ,
3674+ " cannot find label %0 in scope ; did you mean %1?" ,
36753675 (Identifier, Identifier))
36763676
36773677ERROR(foreach_sequence_does_not_conform_to_expected_protocol,none,
0 commit comments