rfcs
rfcs copied to clipboard
RFCs for changes to Rust
Currently we have the unstable `Vec::drain_filter`: ```rust pub fn drain_filter(&mut self, filter: F) -> DrainFilter
[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...
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)
[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 :)
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...
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...
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)
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)
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...