scottmcm
scottmcm
Third-party `derive` macros want to be able to use the same direct discriminant access to the `enum` for which they're implementing a trait that the core derive macro does, which...
Since a bunch of the new foundation responsibilities were those of the Mozilla Foundation before, is there a summary of the important differences between the two foundations? (For example, one...
# Proposal ## Problem statement Today, [`ptr::from_raw_parts`](https://doc.rust-lang.org/nightly/std/ptr/fn.from_raw_parts.html) can only accept `*const ()` for the `data_pointer`. That means that common cases -- like making a slice pointer -- have to cast....
# Proposal ## Problem statement For a type that's copy, `[x; N]` works great for getting an array. For a constructor that's const, `[const { Foo::new() }; N]` works great...
# Proposal ## Problem statement People are often unsure about what the rules are for creating a ZST. See, for example, , where the person made an unsound function. (Thankfully...
# Summary We need to settle what `match`ing means -- is it bitwise structural on the non-padding? is it `PartialEq`? -- and in particular what are the implications of that...
We should have a way to say "we're interested in someone forming a group to tackle $(problem)". That came up in triage today with (IIRC) the prelude stuff, and I...
Now that https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left is stable (1.26), consider deprecating the implementation here. Note that they're not identical; in the `std` version the shift length isn't modulo the array length. The std...
There's the unstable `std::process::ExitCode` (tracking issue https://github.com/rust-lang/rust/issues/48711) that also has a `Termination` impl: https://doc.rust-lang.org/nightly/std/process/struct.ExitCode.html#impl-Termination It never had an RFC, so it needs someone to figure out what it should look...
Looks like I was worried for nothing; this seems like it's much easier than I was originally thinking it would be. r? @cjgillot This should be useful for `x[..4]`-like things,...