Info
This post is auto-generated from RSS feed This Week in Rust. Source: This Week in Rust 602
Hello and welcome to another issue of This Week in Rust! Rust is a programming language empowering everyone to build reliable and efficient software. This is a weekly summary of its progress and community. Want something mentioned? Tag us at @thisweekinrust.bsky.social on Bluesky or @ThisWeekinRust on mastodon.social, or send us a pull request. Want to get involved? We love contributions.
This Week in Rust is openly developed on GitHub and archives can be viewed at this-week-in-rust.org. If you find any errors in this week's issue, please submit a PR.
Want TWIR in your inbox? Subscribe here.
This week's crate is context-logger, a lightweight, ergonomic library for adding structured context to your logs.
Thanks to Aleksey Sidorov for the self-suggestion!
Please submit your suggestions and votes for next week!
An important step for RFC implementation is for people to experiment with the implementation and give feedback, especially before stabilization.
If you are a feature implementer and would like your RFC to appear in this list, add a
call-for-testing
label to your RFC along with a comment providing testing instructions and/or
guidance on which aspect(s) of the feature need testing.
CARGO_TARGET_DIR
to be only an artifacts directoryNo calls for testing were issued this week by Rust, Rust language RFCs or Rustup.
Let us know if you would like your feature to be tracked as a part of this list.
Always wanted to contribute to open-source projects but did not know where to start? Every week we highlight some tasks from the Rust community for you to pick and get started!
Some of these tasks may also have mentors available, visit the task page for more information.
No Calls for participation were submitted this week.
If you are a Rust project owner and are looking for contributors, please submit tasks here or through a PR to TWiR or by reaching out on X (formerly Twitter) or Mastodon!
Are you a new or experienced speaker looking for a place to share something cool? This section highlights events that are being planned and are accepting submissions to join their event as a speaker.
No Calls for papers or presentations were submitted this week.
If you are an event organizer hoping to expand the reach of your event, please submit a link to the website through a PR to TWiR or by reaching out on X (formerly Twitter) or Mastodon!
529 pull requests were merged in the last week
TypeFlags
fast paths((un)checked_)exact_div
methods for integersBTreeMap::extract_if
and BTreeSet::extract_if
CStr::display
Result::map_or_default
and Option::map_or_default
From<TryLockError>
for io::Error
const
support for float rounding methodsdata_ptr
method to Mutex and RwLockdoc(cfg(false))
properlyexplicit_deref_methods
: do not lint on method chainsneedless_return
: look inside else if
parts as wellwhile_let_loop
: Include let
assignment in suggestioninfallible_try_from
modulo_arithmetic
manual_is_variant_and lint
to check for boolean map comparisonsdbg_macro
fail to handle async coroutine desugarsemicolon_outside_block
suggests wrongly when inside macrosmanual_contains
docspointer_format
unit_return_expecting_ord
Generate
actions when filtering the allowed onesstruct
Semantics<'db, dyn HirDatabase>
, by use of DB: ?Sized
tuple<->named struct
for the struct
and visiblity keywordslet pat = expr?;
→ let else
HirDatabase::infer, const_param_ty_with_diagnostics
AsyncFnX
return typethread_result_to_response
A fairly busy week, with lots of changes to performance. Most of the changes (at least in quantity of benchmarks) are attributable to an update of our PGO collection to newer benchmarks as part of the 2025 refresh.
Triage done by @simulacrum. Revision range: 2805e1dc..2fc3deed
Changes to Rust follow the Rust RFC (request for comments) process. These are the RFCs that were approved for implementation this week:
Every week, the team announces the 'final comment period' for RFCs and key PRs which are reaching a decision. Express your opinions now.
if let
guards (feature(if_let_guard)
)Clone
implementation for ChunkBy
dangerous_implicit_autorefs
lint deny-by-defaultunknown_or_malformed_diagnostic_attributes
lintfile!
Option<unsafe fn()>
feature(generic_arg_infer)
#![doc(test(attr(..)))]
everywhereunsigned_signed_diff
os_string_pathbuf_leak
No Items entered Final Comment Period this week for Cargo, Language Reference, Language Team or Unsafe Code Guidelines.
Let us know if you would like your PRs, Tracking Issues or RFCs to be tracked as a part of this list.
Rusty Events between 2025-06-04 - 2025-07-02 🦀
If you are running a Rust event please add it to the calendar to get it mentioned here. Please remember to add a link to the event too. Email the Rust Community Team for access.
Please see the latest Who's Hiring thread on r/rust
Rust-based Python type checkers are like buses - you wait ages for one and then two come along at once.
Thanks to Brian Kung for the suggestion!
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, U007D, joelmarcey, mariannegoldin, bennyvasquez, bdillo
Email list hosting is sponsored by The Rust Foundation
🏷️ rust_feed