Repository navigation
Description
This issue tracks the release notes text for #149543.
cc @llogiq, @WaffleLapkin -- original issue/PR authors and assignees for drafting text
See the forge.rust-lang.org chapter about release notes for an overview of how the release team makes use of these tracking issues.
Release notes text
This section should be edited to specify the correct category(s) for the change, with succinct description(s) of what changed. Some things worth considering:
- Does this need an additional compat notes section?
- Was this a libs stabilization that should have additional headers to list new APIs under
Stabilized APIsandConst Stabilized APIs?
# Language
- The `todo!()` macro will suppress the `unreachable_code` lint, so you no longer get a pile of warnings about unreachability for code in progress; instead, you'll get a single `todo_macro_calls` lint on the `todo!()` call itself. [Reduce `unreachable_code` churn after `todo!()`](https://github.com/rust-lang/rust/pull/149543)Tip
Use the previous releases for inspiration on how to write the release notes text and which categories to pick.
Release blog section
If this change is notable enough for inclusion in the blog post then this section should be edited to contain a draft for the blog post. Otherwise leave it empty.
## Better handling of `todo!()`
When you're working on code, you can use the `todo!()` macro (since Rust 1.40) to document that you haven't written a piece of code yet. This acts as a runtime panic if actually reached, but unlike `panic!()` or `unreachable!()`, it specifically documents that the code is in progress. You can then compile and test the rest of the code.
However, because `todo!()` is an unconditional panic, previous versions of Rust would warn that any code occurring after it is unreachable. This can produce a lot of noise about the code you're currently working on.
Now, the `todo!()` macro will suppress the `unreachable_code` lint, so you no longer get a pile of warnings about unreachability for code in progress. Instead, you'll get a single `todo_macro_calls` lint on the `todo!()` call itself. You can control these lints independently.Note
If a blog post section is required the release-blog-post label should be added (@rustbot label +release-blog-post) to this issue as otherwise it may be missed by the release team.
Activity
llogiq commentedon Jun 13, 2026
I think the text should read:
unreachable_codelint no longer triggers aftertodo!()todo_macro_callslint was added