rfcs
rfcs copied to clipboard
RFCs for changes to Rust
[Rendered](https://github.com/PoignardAzur/placement-by-return/blob/placement-by-return/text/0000-placement-by-return.md). --- **Glossary:** - **GCE:** [Guaranteed Copy Elision](https://stackoverflow.com/questions/38043319/how-does-guaranteed-copy-elision-work). - **NRVO:** [Named Return Value Optimization](https://shaharmike.com/cpp/rvo/). - **DST:** [Dynamically-Sized Type](https://doc.rust-lang.org/reference/dynamically-sized-types.html).
[Rendered](https://github.com/m-ou-se/rfcs/blob/atomic-memcpy/text/3301-atomic-memcpy.md)
This RFC adds support In Cargo for setting RUSTFLAGS via a new command line options, `--rustflags ` that only applies to the current crate being built. [Rendered](https://github.com/ridwanabdillahi/rfcs/blob/cargo_cli_rustflags/text/0000-rustflags.md)
[rendered](https://github.com/conradludgate/rfcs/blob/array-builder/text/0000-array-builder.md)
The Swift ABI defines an interesting [struct layout](https://github.com/apple/swift/blob/master/docs/ABI.rst#fragile-struct-and-tuple-layout) which defines the size of a type separately from its stride: > Note that this differs from C or LLVM's normal layout...
```rust #[derive(Debug, Clone, PartialEq, Eq)] pub struct NotFound { pub index: Idx } pub trait TryIndex { type Output; fn try_index(&self, index: Idx) -> Result; } pub trait TryIndexMut {...
## Background Numerical types with defined constraints can be a useful way to perform some sanity checks at compile time. Ada is one of language I know which has these...
The idea of a `!=` constraint form in `where` clauses has come up multiple times, in discussions of the `where` clause itself, in https://github.com/rust-lang/rust/issues/20041 as a counterpart to the `==`...
Hi, As suggested in an old and closed but still active [discussion](https://github.com/rust-lang/rfcs/issues/920), I open another thread because it looks interesting to have the capability to have inline comments. My use...
Currently there are only two ways to cast floats to integers 1. `as` casts 2. `to_int_unchecked` Adding explicit conversion functions could make casting a bit easier. I would propose the...