rfcs
rfcs copied to clipboard
RFCs for changes to Rust
I noticed that, like other languages, the only floating-point types built-in are `f32` and `f64`. However, I often have limitations with just these. I propose the following: ~~`fsize`, `freal`~~, and...
This RFC proposes improving C types to be able to identify C char and integer type uses at the time types are encoded for cross-language LLVM CFI support. As the...
Make the `IpAddr`, `Ipv4Addr` and `Ipv6Addr` types available in `no_std` contexts by moving them into a `core::net` module. [Rendered](https://github.com/reitermarkus/rfcs/blob/core-net-types/text/0000-core-net-ipaddr-types.md)
I'll primarily defer to existing discussions requesting the same, see the following at internals.rust-lang: [allow destructuring patterns in const and static](https://internals.rust-lang.org/t/feature-request-allow-destructuring-patterns-in-const-and-static/16053) [destructuring declarations for const](https://internals.rust-lang.org/t/feature-request-destructuring-declarations-for-const/14997) It simply seems that it...
I've observed a case where a developer was pinning everything inside of `Cargo.toml` except their Git Repositories for the mere benefit of having an easy method to update all of...
`Vec` has many methods that may allocate memory (to expand the underlying storage, or shrink it down). Currently each of these method rely on "infallible" allocation, that is any failure...
For example, suppose `X` derefs, then `&pat` takes `X` and dereferences it. If the dereferenced value matches pattern `pat`, it matches. In other words, it extends `&pattern` from only allowing...
It would be very useful in certain contexts (such as macros) to be able to get the concrete type of some variable through a given binding. The idea for the...
[Rendered](https://github.com/conradludgate/rfcs/blob/postfix-match/text/0000-postfix-match.md) An alternative postfix syntax for match expressions that allows for interspersing match statements with function chains ```rust foo.bar().baz.match { _ => {} } ``` as syntax sugar for ```rust...
This RFC proposes integrating Rust's support for source-based code coverage into Cargo. [Internals Thread](https://internals.rust-lang.org/t/pre-rfc-rust-code-coverage-integration-in-cargo/16758) [Rendered](https://github.com/ridwanabdillahi/rfcs/blob/cargo-test-coverage/text/0000-cargo-test-coverage.md) rust-lang/cargo#13040