Skip to content

Commit 4e3278e

Browse files
committed
[ast] [diag] [sil] update diagnostic note
1 parent 4b4bb4c commit 4e3278e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ ERROR(guard_body_must_not_fallthrough,none,
229229
"'guard' body must not fall through, consider using a 'return' or 'throw'"
230230
" to exit the scope", ())
231231
WARNING(unreachable_code,none, "will never be executed", ())
232-
NOTE(unreachable_code_uninhabited_param_note,none, "the function body will never be executed", ())
232+
NOTE(unreachable_code_uninhabited_param_note,none,
233+
"the function body will never be executed. remove the function body to dismiss "
234+
"the warning", ())
233235
NOTE(unreachable_code_branch,none,
234236
"condition always evaluates to %select{false|true}0", (bool))
235237
NOTE(call_to_noreturn_note,none,

0 commit comments

Comments
 (0)