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

Hi, Right now If there's a Fn* trait that has 2 parameters of the same type it's really easy to confuse which is which. i.e.: ``` type Callback = FnMut(&[u8],...

T-lang
A-syntax
A-function-pointers

## Motivation Data structures which closely fit a single inheritance model can be very efficiently implemented in C++. Where high performance (both space and time) is crucial there is distinct...

postponed
T-lang
A-data-types
A-traits
A-typesystem

**Issue by [ghost](https://github.com/ghost)** _Sunday Mar 17, 2013 at 02:56 GMT_ _For earlier discussion, see https://github.com/rust-lang/rust/issues/5417_ _This issue was labelled with: A-libs, A-traits, B-RFC in the Rust repository_ --- Since I've...

T-lang
T-libs-api
A-traits-libstd
A-enum

There are various [crates](https://crates.io/crates/enum-iterator) that allow for iterating over the constants in an enum, but such a core feature should be part of the standard library.

T-libs-api

```rust /// Trims this slice from the left. fn trim_left_matches bool>(&self, f: F) -> &[T] { let mut res = self; while res.len() > 0 && f(res[0]) { res =...

T-libs-api

Use case: I'm trying to merge `BTreeMap`s, but in the case of a duplicate key, I'd prefer to add the values instead of ignoring the first. To do this, I...

T-libs-api

[Rendered](https://github.com/dancrossnyc/rust-rfcs/blob/master/text/0000-volatile-copy-and-set.md) Stabilize the `volatile_copy_memory`, `volatile_copy_nonoverlapping_memory` and `volatile_set_memory` intrinsics as `ptr::copy_volatile`, `ptr::copy_nonoverlapping_volatile` and `ptr::write_bytes_volatile`, respectively. I initiated discussion on this back in June here: https://internals.rust-lang.org/t/pre-rfc-stabilize-volatile-copy-and-set-functions/9872 Unfortunately, it fell off my plate,...

T-libs-api
A-machine
A-intrinsic
A-raw-pointers
A-volatile
Libs-Tracked

A portion of the community (and of the core team) sees one or more of the following features as important for programmer ergonomics: - keyword-based parameters (as opposed to position-based...

postponed
T-lang
A-syntax
A-typesystem
A-expressions

cc https://github.com/rust-lang/rust/issues/54185 r? @pnkfelix [Rendered](https://github.com/JohnTitor/rfcs/blob/update-rfc-2093/text/2093-infer-outlives.md)

T-lang
not-rfc
I-lang-radar

This RFC proposes to add niches to reference-like types by exploiting unused bit patterns caused by alignment requirements. [Rendered](https://github.com/moulins/rfcs/blob/6ec77d55147d7c06ece56e2a44ddee56ee8b5cf4/text/3204-references-alignment-niches.md) [Previous discussion on IRLO](https://internals.rust-lang.org/t/pre-rfc-add-alignment-niches-for-references/15693)

T-lang