rfcs
rfcs copied to clipboard
RFCs for changes to Rust
RFC for rustdoc-cargo-configuration [Rendered](https://github.com/tgross35/rfcs/blob/rustdoc-cargo-config/text/0000-rustdoc-cargo-configuration.md) This RFC describes a way for `rustdoc` to get information from `Cargo.toml`. Its main use case is the Cargo feature descriptions RFC https://github.com/rust-lang/rfcs/pull/3416. The implementation goal...
Rendered: https://github.com/Nokel81/rfcs/blob/get-mut-refs/text/0000-get-mut-refs.md Previous IRLO discussion: https://internals.rust-lang.org/t/add-as-mut-ref-for-slice-or-array/14199/ Previous Zulip discussion: https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/GetMutRefs
I want to take a slice of bytes and get the longest prefix of the slice which is valid utf8. My use case is that I'm reading utf8 data from...
Rust has: `let PATTERN: TYPE = EXPRESSION else DIVERGING_BLOCK;` but it should allow: `let PATTERN: TYPE = EXPRESSION else CONVERGING_BLOCK;` if `PATTERN` contains a single named variable. e.g. ``` let...
This is a sign-off issue as per [RFC 2044](https://github.com/rust-lang/rfcs/pull/2044) ([tracking issue](https://github.com/rust-lang/rust/issues/43461)) to license the `rust-lang/rfcs` repo under dual Apache2/MIT licensing terms. You are receiving this notification because you have contributed...
`#[diagnostic::blocking]` is a marker attribute for functions that are considered (by their author) to be a blocking operation, and as such shouldn't be invoked from an `async` function. `rustc`, `clippy`...
[Rendered](https://github.com/m-ou-se/rfcs/blob/thread-spawn-hook/text/3642-thread-spawn-hook.md)
This RFC proposes the addition of an optional `recommended-bin-packages` field to the `[package]` section of `Cargo.toml`, to enable package authors to point out related binary packages in the error message...
Unsafe fields
Co-authored by @jswrenn. Fixes https://github.com/rust-lang/rfcs/issues/381 [Rendered](https://github.com/jhpratt/rfcs/blob/unsafe-fields/text/0000-unsafe-fields.md) Tracking: - https://github.com/rust-lang/rust/issues/132922 --- p-FCP comment: https://github.com/rust-lang/rfcs/pull/3458#issuecomment-2917140820
An alternative to this is https://github.com/rust-lang/rfcs/pull/3635 [Rendered](https://github.com/m-ou-se/rfcs/blob/extern-impl-fn/text/0000-externally-implementable-functions.md) Tracking: - https://github.com/rust-lang/rust/issues/125418