{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicgntyunf2td5yf6mzx5pg5od4azwd72bzwdqvyggwoqod2d3tks4",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mg3xy4g24f42"
},
"path": "/t/pre-rfc-deprecation-and-separation-of-the-dead-code-lint/24045#post_7",
"publishedAt": "2026-03-02T17:22:55.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "TIL that this triggers `unreachable_code`, not `dead_code`. Interesting.\n\n\n fn main() {\n std::process::exit(0);\n println!(\"dead code\");\n }\n\n\nIt seems worth adding an explanation to the RFC of what the `dead_code` lint does, since apparently it does not lint on dead code as in my example above.",
"title": "Pre-RFC: Deprecation and separation of the dead_code lint"
}