rfcs
rfcs copied to clipboard
RFCs for changes to Rust
[Rendered](https://github.com/Stargateur/rfcs/blob/master/text/3263-precise-pre-release-deps.md) [Internals thread](https://internals.rust-lang.org/t/changing-cargo-semver-compatibility-for-pre-releases/14820) I think there is two major solution either: - Cargo will not use the more compatible version for pre-release by default, this mean that `1.0.0-alpha.0` will be...
Generally, it is impossible to get ownership of **immutable reference** from a method of a struct object. But sometimes, like I stated [here](https://stackoverflow.com/questions/72226926/how-to-return-the-value-of-a-reference-field-of-a-struct-that-is-no-longer-used/72227016?noredirect=1#comment127610977_72227016), when it is confirmed that the struct...
Introduce a new special lifetime `'unsafe` which is outlived by all other lifetimes. Using a type through a 'unsafe reference, or which is instantiated with an `'unsafe` lifetime parameter is...
[**Rendered**](https://github.com/yaahc/rfcs/blob/master/text/0000-dyn-error-generic-member-access.md) Also, I've mocked up the proposal in this repository - https://github.com/yaahc/nostd-error-poc/
This RFC introduces simple postfix macros, of the form `expr.ident!()`, to make macro invocations more readable and maintainable in left-to-right method chains. In particular, this proposal will make it possible...
Allow `include!` to be implemented in proc macros, by adding a `proc_macro` API to read files as `Vec`, `String`, or `TokenStream`. If the file is read as `TokenStream`, it is...
There appears to be no way to disable backtrace information embedding into a program. There are some cases where bundling filenames and other information needed for backtraces is not desired....
The following is currently not valid: ```rust const CONST: u32 = 1; fn main() { let x = 2; match x { _ @ CONST => { }, _ =>...
[Rendered](https://github.com/fusion-engineering-forks/rfcs/blob/subslice-offset/text/0000-subslice-offset.md) (This idea was mentioned in the 'Future possibilities' section of https://github.com/rust-lang/rfcs/pull/2791)
Currently, `bool` is not an `enum`, but there's no strong reason for that state of affairs. Making it an `enum` would increase overall consistency in the language. This is a...