Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
## Summary When calling `println!` it currently causes a panic if `stdout` does not exist. Change this to ignore this specific error and simply void the output. ## Motivation On Linux `stdout` almost always exists, so when people write game...
github.com RFC 1014 RFC 2015-03-25 ~2 min read
## Summary This RFC suggests stabilizing a reduced-scope `Duration` type that is appropriate for interoperating with various system calls that require timeouts. It does not stabilize a large number of conversion methods in `Duration` that h...
github.com RFC 1040 RFC 2015-03-24 ~7 min read
## Summary Add a function to the `std::process` module to exit the process immediately with a specified exit code. ## Motivation Currently there is no stable method to exit a program in Rust with a nonzero exit code without panicking. The c...
github.com RFC 1011 RFC 2015-03-24 ~2 min read
## Summary Custom coercions allow smart pointers to fully participate in the DST system. In particular, they allow practical use of `Rc<T>` and `Arc<T>` where `T` is unsized. This RFC subsumes part of [RFC 401 coercions](https://github.com/...
github.com RFC 982 RFC 2015-03-16 ~6 min read
## Summary Restrict closure return type syntax for future compatibility. ## Motivation Today's closure return type syntax juxtaposes a type and an expression. This is dangerous: if we choose to extend the type grammar to be more acceptable,...
github.com RFC 968 RFC 2015-03-16 ~1 min read
## Summary Rust's `Write` trait has the `write_all` method, which is a convenience method that writes a whole buffer, failing with `ErrorKind::WriteZero` if the buffer cannot be written in full. This RFC proposes adding its `Read` counterpa...
github.com RFC 980 RFC 2015-03-15 ~10 min read
## Summary Make the `count` parameter of `SliceExt::splitn`, `StrExt::splitn` and corresponding reverse variants mean the *maximum number of items returned*, instead of the *maximum number of times to match the separator*. ## Motivation The...
github.com RFC 979 RFC 2015-03-15 ~2 min read
## Summary Add the family of `[Op]Assign` traits to allow overloading assignment operations like `a += b`. ## Motivation We already let users overload the binary operations, letting them overload the assignment version is the next logical s...
github.com RFC 953 RFC 2015-03-08 ~2 min read
## Summary Disallow hyphens in Rust crate names, but continue allowing them in Cargo packages. ## Motivation This RFC aims to reconcile two conflicting points of view. First: hyphens in crate names are awkward to use, and inconsistent with...
github.com RFC 940 RFC 2015-03-05 ~3 min read
## Summary Replace `Entry::get` with `Entry::or_insert` and `Entry::or_insert_with` for better ergonomics and clearer code. ## Motivation Entry::get was introduced to reduce a lot of the boiler-plate involved in simple Entry usage. Two incr...
github.com RFC 921 RFC 2015-03-01 ~2 min read
## Summary This RFC proposes to expand, and make more explicit, Rust's governance structure. It seeks to supplement today's core team with several *subteams* that are more narrowly focused on specific areas of interest. *Thanks to Nick Came...
github.com RFC 1068 RFC 2015-02-27 ~25 min read
## Summary Allow marking free functions and inherent methods as `const`, enabling them to be called in constants contexts, with constant arguments. ## Motivation As it is right now, `UnsafeCell` is a stabilization and safety hazard: the fie...
github.com RFC 911 RFC 2015-02-25 ~7 min read
## Summary Move the contents of `std::thread_local` into `std::thread`. Fully remove `std::thread_local` from the standard library. ## Motivation Thread locals are directly related to threading. Combining the modules would reduce the number...
github.com RFC 909 RFC 2015-02-25 ~1 min read
## Summary Add intrinsics for single-threaded memory fences. ## Motivation Rust currently supports memory barriers through a set of intrinsics, `atomic_fence` and its variants, which generate machine instructions and are suitable as cross-p...
github.com RFC 888 RFC 2015-02-19 ~1 min read
## Summary Allow inherent implementations on types outside of the module they are defined in, effectively reverting [RFC PR 155](https://github.com/rust-lang/rfcs/pull/155). ## Motivation The main motivation for disallowing such `impl` bodi...
github.com RFC 735 RFC 2015-02-19 ~2 min read
## Summary Support the `#[must_use]` attribute on arbitrary functions, to make the compiler lint when a call to such a function is ignored. Mark `PartialEq::{eq, ne}` `#[must_use]` as well as `PartialOrd::{lt, gt, le, ge}`. ## Motivation Th...
github.com RFC 1940 RFC 2015-02-18 ~3 min read
## Summary Lex binary and octal literals as if they were decimal. ## Motivation Lexing all digits (even ones not valid in the given base) allows for improved error messages & future proofing (this is more conservative than the current appro...
github.com RFC 879 RFC 2015-02-17 ~2 min read
## Summary Pare back the `std::hash` module's API to improve ergonomics of usage and definitions. While an alternative scheme more in line with what Java and C++ have is considered, the current `std::hash` module will remain largely as-is w...
github.com RFC 823 RFC 2015-02-17 ~12 min read
## Summary Stabilize all string functions working with search patterns around a new generic API that provides a unified way to define and use those patterns. ## Motivation Right now, string slices define a couple of methods for string manip...
github.com RFC 528 RFC 2015-02-17 ~16 min read
## Summary Allow macros in type positions ## Motivation Macros are currently allowed in syntax fragments for expressions, items, and patterns, but not for types. This RFC proposes to lift that restriction. 1. This would allow macros to be u...
github.com RFC 873 RFC 2015-02-16 ~5 min read
"Think of "it works" when you have UB like this: You've flipped a coin 1 time and it's come up heads and you've concluded it's never tails."
— @mirashii on the community discord

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, and research. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.