Skip to content

Commit d65a6a4

Browse files
committed
[DNM] temporarily make nontrivial raw conversion an error
1 parent 6cf0e2e commit d65a6a4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -808,14 +808,14 @@ ERROR(sil_movekillscopyablevalue_move_applied_to_unsupported_move, none,
808808
())
809809

810810
// Implicit inout-to-UnsafeRawPointer conversions
811-
WARNING(nontrivial_to_rawpointer_conversion,none,
812-
"cannot implicitly convert an inout value of type %0 to expected "
813-
"argument type %1 because %2 may contain an object reference.",
814-
(Type, Type, Type))
815-
816-
WARNING(nontrivial_string_to_rawpointer_conversion,none,
817-
"cannot implicitly convert an inout String to expected argument type %0.",
818-
(Type))
811+
ERROR(nontrivial_to_rawpointer_conversion,none,
812+
"cannot implicitly convert an inout value of type %0 to expected "
813+
"argument type %1 because %2 may contain an object reference.",
814+
(Type, Type, Type))
815+
816+
ERROR(nontrivial_string_to_rawpointer_conversion,none,
817+
"cannot implicitly convert an inout String to expected argument type %0.",
818+
(Type))
819819

820820
#define UNDEFINE_DIAGNOSTIC_MACROS
821821
#include "DefineDiagnosticMacros.h"

0 commit comments

Comments
 (0)