rfcs
rfcs copied to clipboard
RFCs for changes to Rust
This RFC proposes to forbid function -> integer `as` casts, since they have surprising aspects and are error prone. [Rendered](https://github.com/WaffleLapkin/rfcs/blob/forbidden-function-casts/text/3521-forbidden-function-casts.md)
I think it would be nice to do something like that: ```rust let x = [1, 2, 3, 4]; let y = x[1..2]; ``` Why isn't `y` of type `[i32;...
The Store offers a more flexible allocation API, suitable for in-line memory store, shared memory store, compact "pointers", const/static use, and more. Adoption of this API, and its use in...
TL;DR : This allows this code with the new `prelude` keyword: ```rust mod bar { #[derive(Default)] pub(crate) struct Bar(pub(crate) usize); #[derive(Default)] pub(crate) struct Baz(pub(crate) usize); } struct Foo { bar:...
Allow `_` for the name of associated constants. This RFC builds on [RFC 2526] which added support for free `const` items with the name `_`, but not associated consts. ```rust...
Introduce shared base directories in Cargo configuration files that in turn enable base-relative path dependencies. [Rendered](https://github.com/dpaoliello/rfcs/blob/basepath/text/3529-cargo-path-bases.md) Draft Implementation PR: https://github.com/rust-lang/cargo/pull/12974 This is a resurrection of @jonhoo's RFC (#3074). Many thanks...
[Rendered](https://github.com/aDotInTheVoid/rfcs/blob/rustdoc-types-maintainers/text/0000-rustdoc-types-maintainers.md) CC @rust-lang/rustdoc @rust-lang/infra
Not sure this should be a lacking in RFC or a bug in compiler, sorry if I issued to the wrong place. The title is a little confusing, here is...
I wrote up my thoughts from [this rust-internals thread](https://internals.rust-lang.org/t/macro-rules-metavariable-for-generic/18889) into an RFC. [Rendered](https://github.com/JarredAllen/rust-lang-rfcs/blob/fragment-specifiers-for-generic-arguments/text/0000-fragment-specifiers-for-generic-arguments.md)
This RFC is largely the work of @rylev. I've worked with him to update some of the language and then added some additional context from Android. This is my first...