@@ -747,77 +747,65 @@ NOTE(discard_nontrivial_implicit_storage_note,none,
747
747
" type %0 implicitly contains %1 which cannot be trivially destroyed" ,
748
748
(Type, Type))
749
749
750
- // move only checker diagnostics
751
- ERROR(sil_moveonlychecker_owned_value_consumed_more_than_once, none,
750
+
751
+ // / Move Checking / Noncopyable types diagnostics
752
+
753
+ ERROR(sil_movechecking_owned_value_consumed_more_than_once, none,
752
754
" '%0' consumed more than once" , (StringRef))
753
- ERROR(sil_moveonlychecker_owned_value_consumed_and_used_at_same_time , none,
755
+ ERROR(sil_movechecking_owned_value_consumed_and_used_at_same_time , none,
754
756
" '%0' consumed and used at the same time" , (StringRef))
755
- ERROR(sil_moveonlychecker_value_used_after_consume , none,
757
+ ERROR(sil_movechecking_value_used_after_consume , none,
756
758
" '%0' used after consume" , (StringRef))
757
- ERROR(sil_moveonlychecker_guaranteed_value_consumed , none,
759
+ ERROR(sil_movechecking_guaranteed_value_consumed , none,
758
760
" '%0' is borrowed and cannot be consumed" , (StringRef))
759
761
760
762
// FIXME: this diagnostic shouldn't ever be emitted now. rdar://109742587 (closures may still try to consume captures, e.g., borrowed parameters)
761
- ERROR(sil_moveonlychecker_guaranteed_value_captured_by_closure , none,
763
+ ERROR(sil_movechecking_guaranteed_value_captured_by_closure , none,
762
764
" '%0' is borrowed and cannot be consumed by closure capture" , (StringRef))
763
765
764
- ERROR(sil_moveonlychecker_capture_consumed , none,
766
+ ERROR(sil_movechecking_capture_consumed , none,
765
767
" noncopyable '%0' cannot be consumed when captured by a closure" , (StringRef))
766
- ERROR(sil_moveonlychecker_inout_not_reinitialized_before_end_of_function , none,
768
+ ERROR(sil_movechecking_inout_not_reinitialized_before_end_of_function , none,
767
769
" missing reinitialization of inout parameter '%0' after consume" , (StringRef))
768
- ERROR(sil_moveonlychecker_value_consumed_in_a_loop , none,
770
+ ERROR(sil_movechecking_value_consumed_in_a_loop , none,
769
771
" '%0' consumed in a loop" , (StringRef))
770
-
771
- ERROR(sil_moveonlychecker_use_after_partial_consume, none,
772
+ ERROR(sil_movechecking_use_after_partial_consume, none,
772
773
" cannot use '%0' after partial consume" , (StringRef))
773
-
774
- ERROR(sil_moveonlychecker_notconsumable_but_assignable_was_consumed, none,
774
+ ERROR(sil_movechecking_notconsumable_but_assignable_was_consumed, none,
775
775
" cannot consume noncopyable stored property '%0' %select{of a class|that is global}1" ,
776
776
(StringRef, bool ))
777
-
778
- ERROR(sil_moveonlychecker_cannot_destructure_has_deinit, none,
777
+ ERROR(sil_movechecking_cannot_destructure_has_deinit, none,
779
778
" cannot partially consume '%0' when it has a deinitializer" ,
780
779
(StringRef))
781
780
782
- NOTE(sil_moveonlychecker_partial_consume_here , none,
781
+ NOTE(sil_movechecking_partial_consume_here , none,
783
782
" partially consumed here" , ())
784
- NOTE(sil_moveonlychecker_consuming_use_here , none,
783
+ NOTE(sil_movechecking_consuming_use_here , none,
785
784
" consumed here" , ())
786
- NOTE(sil_moveonlychecker_other_consuming_use_here , none,
785
+ NOTE(sil_movechecking_other_consuming_use_here , none,
787
786
" other consume here" , ())
788
- NOTE(sil_moveonlychecker_two_consuming_uses_here , none,
787
+ NOTE(sil_movechecking_two_consuming_uses_here , none,
789
788
" multiple consumes here" , ())
790
- NOTE(sil_moveonlychecker_consuming_and_non_consuming_uses_here , none,
789
+ NOTE(sil_movechecking_consuming_and_non_consuming_uses_here , none,
791
790
" consumed and used here" , ())
792
- NOTE(sil_moveonlychecker_consuming_closure_use_here , none,
791
+ NOTE(sil_movechecking_consuming_closure_use_here , none,
793
792
" closure capturing '%0' here" , (StringRef))
794
- NOTE(sil_moveonlychecker_nonconsuming_use_here , none,
793
+ NOTE(sil_movechecking_nonconsuming_use_here , none,
795
794
" used here" , ())
796
-
797
- NOTE(sil_movekillscopyablevalue_value_cyclic_consumed_in_loop_here, none,
798
- " consuming in loop use here" , ())
799
- NOTE(sil_moveonlychecker_deinit_here, none,
800
- " deinit declared here" , ())
801
-
802
- // move kills copyable values checker diagnostics
803
- ERROR(sil_movekillscopyablevalue_value_consumed_more_than_once, none,
804
- " '%0' used after being consumed" , (StringRef))
805
- NOTE(sil_movekillscopyablevalue_move_here, none,
806
- " consume here" , ())
807
- NOTE(sil_movekillscopyablevalue_use_here, none,
808
- " use here" , ())
809
- NOTE(sil_movekillscopyablevalue_value_consumed_in_loop, none,
810
- " consume here would occur multiple times in loop" , ())
795
+ NOTE(sil_movechecking_consumed_in_loop_here, none,
796
+ " consumed in loop here" , ())
797
+ NOTE(sil_movechecking_deinit_here, none,
798
+ " deinitializer declared here" , ())
811
799
812
800
// errors involving noncopyables that are considered to be bugs in the compiler
813
- ERROR(sil_moveonlychecker_not_understand_consumable_and_assignable , none,
801
+ ERROR(sil_movechecking_not_understand_consumable_and_assignable , none,
814
802
" usage of no-implicit-copy value that the compiler can't verify. This is a compiler bug. Please file a bug with a small example of the bug" , ())
815
- ERROR(sil_moveonlychecker_not_understand_moveonly , none,
803
+ ERROR(sil_movechecking_not_understand_moveonly , none,
816
804
" usage of a noncopyable type that compiler can't verify. This is a compiler bug. Please file a bug with a small example of the bug"
817
805
" check!" , ())
818
- ERROR(sil_moveonlychecker_bug_missed_copy , none,
806
+ ERROR(sil_movechecking_bug_missed_copy , none,
819
807
" copy of noncopyable typed value. This is a compiler bug. Please file a bug with a small example of the bug" , ())
820
- ERROR(sil_moveonlychecker_bug_exclusivity_violation , none,
808
+ ERROR(sil_movechecking_bug_exclusivity_violation , none,
821
809
" '%0' has an unexpected exclusivity violation. This is a compiler bug. Please file a bug with a small example of the bug" , (StringRef))
822
810
ERROR(sil_movekillscopyablevalue_move_applied_to_unsupported_move, none,
823
811
" 'consume' applied to value that the compiler does not support. This is a compiler bug. Please file a bug with a small example of the bug" ,
0 commit comments