Skip to content

Commit 6b888db

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents 89f5c24 + 7eff8fb commit 6b888db

10 files changed

+0
-242
lines changed

include/swift/AST/DiagnosticsClangImporter.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ NOTE(macro_not_imported_unsupported_named_operator, none, "operator '%0' not sup
146146
NOTE(macro_not_imported_invalid_string_literal, none, "invalid string literal", ())
147147
NOTE(macro_not_imported_invalid_numeric_literal, none, "invalid numeric literal", ())
148148
NOTE(macro_not_imported_unsupported_literal, none, "only numeric and string macro literals supported", ())
149-
NOTE(macro_not_imported_nested_cast, none, "non-null nested casts not supported", ())
150149

151150
NOTE(macro_not_imported_function_like, none, "macro '%0' unavailable: function like macros not supported", (StringRef))
152151
NOTE(macro_not_imported_unsupported_structure, none, "macro '%0' unavailable: structure not supported", (StringRef))

include/swift/AST/DiagnosticsCommon.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ NOTE(in_macro_expansion,none,
232232
ERROR(macro_experimental,none,
233233
"%0 macros are an experimental feature that is not enabled %select{|(%1)}1",
234234
(StringRef, StringRef))
235-
ERROR(ambiguous_macro_reference,none,
236-
"ambiguous reference to macro %0", (DeclName))
237235

238236
//------------------------------------------------------------------------------
239237
// MARK: bridged diagnostics

include/swift/AST/DiagnosticsDriver.def

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,6 @@ ERROR(error_unsupported_option,none,
8080
"option '%0' is not supported by '%1'; did you mean to use '%2'?",
8181
(StringRef, StringRef, StringRef))
8282

83-
WARNING(incremental_requires_output_file_map,none,
84-
"ignoring -incremental (currently requires an output file map)", ())
85-
WARNING(incremental_requires_build_record_entry,none,
86-
"ignoring -incremental; output file map has no master dependencies "
87-
"entry (\"%0\" under \"\")", (StringRef))
88-
89-
WARNING(unable_to_open_incremental_comparison_log,none,
90-
"unable to open incremental comparison log file '%0'", (StringRef))
91-
9283
ERROR(error_os_minimum_deployment,none,
9384
"Swift requires a minimum deployment target of %0", (StringRef))
9485
ERROR(error_sdk_too_old,none,
@@ -100,22 +91,6 @@ ERROR(error_unsupported_target_variant,none,
10091
"unsupported '%select{-target|-target-variant}1' value '%0'; use 'ios-macabi' instead",
10192
(StringRef, bool))
10293

103-
WARNING(warn_arclite_not_found_when_link_objc_runtime,none,
104-
"unable to find Objective-C runtime support library 'arclite'; "
105-
"pass '-no-link-objc-runtime' to silence this warning", ())
106-
107-
WARNING(warn_cannot_stat_input,none,
108-
"unable to determine when '%0' was last modified: %1",
109-
(StringRef, StringRef))
110-
111-
WARNING(warn_unable_to_load_dependencies, none,
112-
"unable to load dependencies file \"%0\", disabling incremental mode",
113-
(StringRef))
114-
115-
ERROR(error_input_changed_during_build,none,
116-
"input file '%0' was modified during the build",
117-
(StringRef))
118-
11994
ERROR(error_conflicting_options, none,
12095
"conflicting options '%0' and '%1'",
12196
(StringRef, StringRef))
@@ -131,9 +106,6 @@ WARNING(warn_ignore_embed_bitcode_marker, none,
131106
WARNING(verify_debug_info_requires_debug_option,none,
132107
"ignoring '-verify-debug-info'; no debug info is being generated", ())
133108

134-
ERROR(verify_incremental_dependencies_needs_incremental,none,
135-
"'-verify-incremental-dependencies' requires '-incremental'", ())
136-
137109
ERROR(error_profile_missing,none,
138110
"no profdata file exists at '%0'", (StringRef))
139111

@@ -152,10 +124,6 @@ WARNING(warn_use_filelists_deprecated, none,
152124
"the option '-driver-use-filelists' is deprecated; use "
153125
"'-driver-filelist-threshold=0' instead", ())
154126

155-
WARNING(warn_unable_to_load_primary, none,
156-
"unable to load primary swift file \"%0\", %1",
157-
(StringRef, StringRef))
158-
159127
ERROR(cannot_find_migration_script, none,
160128
"missing migration script from path '%0'", (StringRef))
161129

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ WARNING(warning_inferred_simulator_target,none,
6464
ERROR(error_argument_not_allowed_with, none,
6565
"argument '%0' is not allowed with '%1'", (StringRef, StringRef))
6666

67-
WARNING(warning_argument_not_supported_with_optimization, none,
68-
"argument '%0' is not supported with optimization", (StringRef))
69-
7067
ERROR(error_option_requires_sanitizer, none,
7168
"option '%0' requires a sanitizer to be enabled. Use -sanitize= to "
7269
"enable a sanitizer", (StringRef))
@@ -107,8 +104,6 @@ WARNING(warning_cannot_multithread_batch_mode,none,
107104
"ignoring -num-threads argument; cannot multithread batch mode", ())
108105
ERROR(error_cannot_explicit_interface_build_in_mode,none,
109106
"'-explicit-interface-module-build' only supported when building a module from interface ('-compile-module-from-interface' or '-typecheck-module-from-interface')'", ())
110-
ERROR(error_cannot_direct_cc1_pcm_build_in_mode,none,
111-
"'-direct-clang-cc1-module-build' only supported when building a PCM ('-emit-pcm')'", ())
112107
ERROR(error_unsupported_option_argument,none,
113108
"unsupported argument '%1' to option '%0'", (StringRef, StringRef))
114109
ERROR(error_swift_module_file_requires_delimeter,none,
@@ -122,8 +117,6 @@ ERROR(error_immediate_mode_primary_file,none,
122117
"immediate mode is incompatible with -primary-file", ())
123118
ERROR(error_missing_frontend_action,none,
124119
"no frontend action was selected", ())
125-
ERROR(error_unsupported_frontend_action, none,
126-
"unsupported action: %0", (StringRef))
127120
ERROR(error_invalid_source_location_str,none,
128121
"invalid source location string '%0'", (StringRef))
129122
ERROR(error_no_source_location_scope_map,none,
@@ -258,10 +251,6 @@ ERROR(error_cannot_have_supplementary_outputs,none,
258251
ERROR(error_duplicate_input_file,none,
259252
"duplicate input file '%0'", (StringRef))
260253

261-
ERROR(repl_must_be_initialized,none,
262-
"variables currently must have an initial value when entered at the "
263-
"top level of the REPL", ())
264-
265254
ERROR(verify_encountered_fatal,none,
266255
"fatal error encountered while in -verify mode", ())
267256

@@ -431,8 +420,6 @@ ERROR(unsupported_version_of_module_interface,none,
431420
(StringRef, llvm::VersionTuple))
432421
ERROR(error_opening_explicit_module_file,none,
433422
"failed to open explicit Swift module: %0", (StringRef))
434-
ERROR(error_extracting_flags_from_module_interface,none,
435-
"error extracting flags from module interface", ())
436423
WARNING(warning_module_shadowing_may_break_module_interface,none,
437424
"public %0 %1 shadows module %2, which may cause failures when "
438425
"importing %3 or its clients in some configurations; please rename "

include/swift/AST/DiagnosticsIRGen.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ ERROR(alignment_more_than_maximum,none,
5050
"@_alignment cannot increase alignment above maximum alignment of %0",
5151
(unsigned))
5252

53-
ERROR(raw_layout_dynamic_type_layout_unsupported,none,
54-
"@_rawLayout is not yet supported for layouts dependent on generic types", ())
55-
5653
ERROR(temporary_allocation_size_negative,none,
5754
"allocation capacity must be greater than or equal to zero", ())
5855
ERROR(temporary_allocation_size_overflow,none,

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,6 @@ ERROR(observing_accessor_in_subscript,none,
311311
ERROR(getset_cannot_be_implied,none,
312312
"variable with implied type cannot have implied getter/setter", ())
313313

314-
ERROR(init_accessor_expected_name,none,
315-
"expected property name in init accessor effect", ())
316-
317314
// Import
318315
ERROR(decl_expected_module_name,none,
319316
"expected module name in import declaration", ())
@@ -673,8 +670,6 @@ ERROR(sil_keypath_index_operand_type_conflict,none,
673670
ERROR(sil_keypath_no_use_of_operand_in_pattern,none,
674671
"operand %0 is not referenced by any component in the pattern",
675672
(unsigned))
676-
ERROR(sil_movevalue_invalid_optional_attribute,none,
677-
"Optional attribute '[%0]' can not be applied to move_value", (StringRef))
678673
ERROR(sil_markmustcheck_invalid_attribute,none,
679674
"Attribute '[%0]' can not be applied to mark_value_as_moveonly", (StringRef))
680675
ERROR(sil_markmustcheck_requires_attribute,none,
@@ -736,8 +731,6 @@ ERROR(sil_vtable_expect_rsquare,none,
736731
"expected ']' after vtable entry kind", ())
737732

738733
// SIL MoveOnlyDeinit
739-
ERROR(expected_sil_moveonlydeinit_colon,none,
740-
"expected ':' in a MoveOnlyDeinit entry", ())
741734
ERROR(sil_moveonlydeinit_func_not_found,none,
742735
"sil function not found %0", (Identifier))
743736
ERROR(sil_moveonlydeinit_nominal_not_found,none,
@@ -1364,19 +1357,13 @@ ERROR(expected_rsquare_array_expr,PointsToFirstBadToken,
13641357
ERROR(expected_arg_list_in_object_literal,PointsToFirstBadToken,
13651358
"expected argument list in object literal", ())
13661359

1367-
// Unknown pound expression.
1368-
ERROR(unknown_pound_expr,none,
1369-
"use of unknown directive '#%0'", (StringRef))
1370-
13711360
// Ternary expressions
13721361
ERROR(expected_expr_after_ternary_question,none,
13731362
"expected expression after '?' in ternary expression", ())
13741363
ERROR(expected_colon_after_ternary_question,none,
13751364
"expected ':' after '? ...' in ternary expression", ())
13761365
ERROR(expected_expr_after_ternary_colon,none,
13771366
"expected expression after '? ... :' in ternary expression", ())
1378-
ERROR(expected_expr_after_try, none,
1379-
"expected expression after 'try'", ())
13801367
ERROR(expected_expr_after_await, none,
13811368
"expected expression after 'await'", ())
13821369
ERROR(expected_expr_after_move, none,
@@ -1492,9 +1479,6 @@ WARNING(warning_in_effects_attribute,none,
14921479
ERROR(expected_in_attribute_list,none,
14931480
"expected ']' or ',' in attribute list", ())
14941481

1495-
ERROR(expected_depends_on,none,
1496-
"expected 'depends_on'", ())
1497-
14981482
ERROR(type_attribute_applied_to_decl,none,
14991483
"attribute can only be applied to types, not declarations", ())
15001484
ERROR(decl_attribute_applied_to_type,none,
@@ -1522,9 +1506,6 @@ ERROR(attr_expected_comma,none,
15221506
ERROR(attr_expected_string_literal,none,
15231507
"expected string literal in '%0' attribute", (StringRef))
15241508

1525-
ERROR(attr_expected_integer_literal,none,
1526-
"expected integer literal in '%0' attribute", (StringRef))
1527-
15281509
ERROR(attr_expected_option_such_as,none,
15291510
"expected '%0' option such as '%1'", (StringRef, StringRef))
15301511

@@ -1782,8 +1763,6 @@ ERROR(attr_differentiable_kind_not_supported,PointsToFirstBadToken,
17821763
"unsupported differentiability kind '%0'; only 'reverse' is supported", (StringRef))
17831764
ERROR(attr_differentiable_unknown_kind,PointsToFirstBadToken,
17841765
"unknown differentiability kind '%0'; only 'reverse' is supported", (StringRef))
1785-
ERROR(attr_differentiable_expected_parameter_list,PointsToFirstBadToken,
1786-
"expected a list of parameters to differentiate with respect to", ())
17871766
ERROR(attr_differentiable_use_wrt_not_withrespectto,none,
17881767
"use 'wrt:' to specify parameters to differentiate with respect to", ())
17891768
ERROR(attr_differentiable_expected_label,none,
@@ -1833,10 +1812,6 @@ ERROR(sil_inst_autodiff_expected_function_type_operand,PointsToFirstBadToken,
18331812
ERROR(sil_inst_autodiff_expected_differentiability_witness_kind,PointsToFirstBadToken,
18341813
"expected a differentiability witness kind, which can be one of '[jvp]', "
18351814
"'[vjp]', or '[transpose]'", ())
1836-
ERROR(sil_inst_autodiff_invalid_witness_generic_signature,PointsToFirstBadToken,
1837-
"expected witness_generic signature '%0' does not have same generic "
1838-
"parameters as original function generic signature '%1'",
1839-
(StringRef, StringRef))
18401815

18411816
WARNING(warn_attr_unsafe_removed,none,
18421817
"'%0' attribute has been removed in favor of @preconcurrency",
@@ -2069,23 +2044,6 @@ ERROR(associatedtype_cannot_be_variadic,none,
20692044
ERROR(type_parameter_pack_ellipsis,none,
20702045
"ellipsis operator cannot be used with a type parameter pack", ())
20712046

2072-
//------------------------------------------------------------------------------
2073-
// MARK: syntax parsing diagnostics
2074-
//------------------------------------------------------------------------------
2075-
ERROR(unknown_syntax_entity, PointsToFirstBadToken,
2076-
"unknown %0 syntax exists in the source", (StringRef))
2077-
2078-
//------------------------------------------------------------------------------
2079-
// MARK: multiple trailing closures diagnostics
2080-
//------------------------------------------------------------------------------
2081-
ERROR(expected_argument_label_followed_by_closure_literal,none,
2082-
"expected an argument label followed by a closure literal", ())
2083-
ERROR(expected_closure_literal,none,
2084-
"expected a closure literal", ())
2085-
2086-
ERROR(expected_multiple_closures_block_rbrace,none,
2087-
"expected '}' at the end of a trailing closures block", ())
2088-
20892047
//------------------------------------------------------------------------------
20902048
// MARK: macros
20912049
//------------------------------------------------------------------------------

include/swift/AST/DiagnosticsRefactoring.def

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@ ERROR(invalid_name, none, "'%0' is not a valid name", (StringRef))
2828

2929
ERROR(extract_function_not_supported_swiftsyntax_missing, none, "Extract Function is not supported because sourcekitd was built without swift-syntax", ())
3030

31-
ERROR(invalid_location, none, "given location is not valid", ())
32-
3331
ERROR(arity_mismatch, none, "the given new name '%0' does not match the arity of the old name '%1'", (StringRef, StringRef))
3432

3533
ERROR(name_not_functionlike, none, "the 'call' name usage cannot be used with a non-function-like name '%0'", (StringRef))
3634

3735
ERROR(unresolved_location, none, "cannot rename due to unresolved location", ())
3836

39-
ERROR(location_module_mismatch, none, "given location does not belong to module '%0'", (StringRef))
40-
4137
ERROR(value_decl_no_loc, none, "cannot rename %0 as it has no declaration location", (DeclName))
4238

4339
ERROR(decl_is_system_symbol, none, "cannot rename system symbol %0", (DeclName))

include/swift/AST/DiagnosticsSIL.def

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,6 @@ NOTE(autodiff_member_subset_indices_not_differentiable,none,
615615
NOTE(autodiff_cannot_param_subset_thunk_partially_applied_orig_fn,none,
616616
"cannot convert a direct method reference to a '@differentiable' "
617617
"function; use an explicit closure instead", ())
618-
NOTE(autodiff_cannot_differentiate_through_multiple_results,none,
619-
"cannot differentiate through multiple results", ())
620-
NOTE(autodiff_cannot_differentiate_through_inout_arguments,none,
621-
"cannot differentiate through 'inout' arguments", ())
622618
NOTE(autodiff_cannot_differentiate_through_direct_yield,none,
623619
"cannot differentiate through a '_read' accessor", ())
624620
NOTE(autodiff_enums_unsupported,none,
@@ -796,14 +792,6 @@ NOTE(capturepromotion_concurrentcapture_capturinguse_here, none,
796792
NOTE(capturepromotion_variable_defined_here,none,
797793
"variable defined here", ())
798794

799-
// move operator used on generic or evalue
800-
ERROR(move_operator_used_on_generic_or_existential_value, none,
801-
"move() used on a generic or existential value", ())
802-
803-
// copy operator used on generic or evalue
804-
ERROR(copy_operator_used_on_generic_or_existential_value, none,
805-
"copy() used on a generic or existential value", ())
806-
807795
// noimplicitcopy on generic or existential binding
808796
ERROR(noimplicitcopy_used_on_generic_or_existential, none,
809797
"@_noImplicitCopy can not be used on a generic or existential typed "
@@ -976,12 +964,6 @@ ERROR(regionbasedisolation_arg_transferred, none,
976964
ERROR(regionbasedisolation_arg_passed_to_strongly_transferred_param, none,
977965
"%0 value of type %1 passed as a strongly transferred parameter; later accesses could race",
978966
(StringRef, Type))
979-
NOTE(regionbasedisolation_isolated_since_in_same_region_basename, none,
980-
"value is %0 since it is in the same region as %1",
981-
(StringRef, DeclBaseName))
982-
NOTE(regionbasedisolation_isolated_since_in_same_region_string, none,
983-
"%0 is %1since it is in the same region as %2",
984-
(Identifier, StringRef, Identifier))
985967

986968
//===---
987969
// New Transfer Non Sendable Diagnostics

0 commit comments

Comments
 (0)