rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFCs for changes to Rust

Results 421 rfcs issues
Sort by recently updated
recently updated
newest added

# Summary This RFC adds call-site unpacking of tuples, tuple structs, and fixed-size arrays, using `...expr` within the function call's parentheses as a shorthand for passing arguments. The full contents...

T-lang

## Motivation https://github.com/rust-lang/libc/pull/1216 proposes adding [`setjmp`](https://en.cppreference.com/w/cpp/utility/program/setjmp) and [`longjmp`](https://en.cppreference.com/w/cpp/utility/program/longjmp) to `libc`. These functions are required to interface with some C libraries, but sadly these functions are currently impossible to use correctly....

T-lang
A-ffi
A-machine

This proposes adding `#[inline(trampoline)]` and `#[inline(rarely)]` to hint the compiler additional information about *why* you're marking the function for inlining, to help it hopefully make better choices without the overly-strong...

T-lang

This is my best guess at what this book is, but I could be wrong, since this does not seem to be stated anywhere...

not-rfc

In both RFCs, you can find the following phrase: The summary line should be written in third person singular present indicative form. Basically, this means write "Returns" instead of "Return"....

The example in the API conventions (in imperative) contradicts the text (use third person). This PR corrects the example to fit the text description. [Rendered](https://github.com/vigna/rfcs/blob/fix_third_person/text/0505-api-comment-conventions.md)

T-libs-api
not-rfc

It's often useful to wrap a single type into a new one, to be able to add new methods, provide more documentation and possibly type safety. For example, ```rust pub...

T-lang
T-libs-api

Rust has two important features for compile-time evaluation: macros and consteval functions. The way these two features interact is not bidirectionally composable, which leads to some limitations in the evaluation...

RealtimeSanitizer is an approach to detecting real-time safety violations in timing critical code. It has been added to LLVM 20, and this RFC aims to leverage that work and add...

T-lang

Rust should have a spaceship operator `` for cleaner three-way comparisons. [Rendered](https://github.com/bjoernager/rfcs/blob/spaceship-operator/text/3776-spaceship-operator.md).

T-lang