Files
swift-mirror/userdocs/diagnostics/diagnostic-descriptions.md
Ben Barham 5ee91339c3 [userdocs] Automatically generate doc indices
Add a tool for automatically generating the doc indices for notes,
groups, and features.
2025-07-07 13:59:09 -07:00

1.3 KiB

Diagnostic descriptions

Detailed explanations for various compiler diagnostics.

Overview

Swift diagnostics are classified into errors and warnings. Warnings can only be silenced in an intentional manner, e.g., adding _ = for an unused function result.

Some diagnostics have more detailed explanations available. These include a [#Name] inline and reference to this documentation at the end of the compiler output on the command line, or is presented specially within your IDE of choice. See below for the full list of these notes.

Topics