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

Currently we have the unstable `Vec::drain_filter`: ```rust pub fn drain_filter(&mut self, filter: F) -> DrainFilter

T-libs-api

[Rendered](https://github.com/SoniEx2/rfcs/blob/closure/text/3300-struct-closure.md) This proposal introduces a struct `core::ops::Closure`, which represents a "concrete" form of closures and allows trait impls to distinguish closures from other kinds of callables. This distinction brings restrictions...

T-lang

This RFC proposes to deprecate UnwindSafe. [Rendered RFC](https://github.com/nico-abram/rfcs/blob/uwu/text/3260-deprecate-unwindsafe.md) [Pre-RFC discussion on internals](https://internals.rust-lang.org/t/pre-rfc-deprecating-unwindsafe/15974)

T-libs-api

[rendered](https://github.com/FlixCoder/rfcs/blob/RFC-proposal/text/0000-iterator-try_all-try_any.md) Hi! As this is my first RFC / PR here, I am sorry if there is something missing or wrong. Thank you for reviewing and suggestions :)

T-libs-api

It would be desirable to, at some point, grow the ability to abstract over the "mutability" of reference types. Currently, it is frequently the case that one must write separate...

T-lang
A-typesystem
A-references

This RFC proposes to change this behavior to always abort if a panic attempts to escape a drop, even if this drop was invoked as part of normal function execution...

T-lang
proposed-final-comment-period
disposition-merge

This RFC proposes implementing scopes for crates.io tokens, allowing users to choose which endpoints the token is allowed to call and which crates it's allowed to affect. [Rendered](https://github.com/pietroalbini/rfcs/blob/crates-io-token-scopes/text/0000-crates-io-token-scopes.md)

A-security
T-crates-io

IRLO pre-RFC thread: https://internals.rust-lang.org/t/pre-rfc-cargo-profile-setting-to-sanitise-host-dependent-absolute-paths-enabled-by-default-for-release-builds/14504 Relevant GitHub issue and discussions: https://github.com/rust-lang/rust/issues/40552 [Rendered](https://github.com/cbeuw/rfcs/blob/trim-path/text/3127-trim-paths.md)

T-compiler
T-cargo

@arifd Co-authored-by: Arif Driessen

T-rustdoc

I think having a table of contents embedded in RFCs (with links back to the top at each section) would really be useful. A table of contents can make a...

A-meta