libs-team
libs-team copied to clipboard
The home of the library team
# Proposal ## Problem statement People often want to check some conditions at compile-time, but currently Rust does not have an intuitionistic way to do it. ## Motivating examples or...
# Proposal ## Problem statement As discussed in the 2024-01-03 T-lang triage meeting, equality for function pointers is awkward (due to "equal" functions being merged together or duplicated across different...
# Proposal ## Problem statement As of today, changing the case of a `String` is done by using methods defined on `str`, which implies that a new buffer is allocated...
# Proposal ## Motivating examples or use cases ```rs fn iter_if(cond: bool, inner: impl ExactSizeIterator) -> impl ExactSizeIterator { cond.then(|| inner).into_iter().flatten() } ``` cannot compile because > error[E0277]: the trait...
# Proposal ## Problem statement Sometimes it is not possible to run a specific test on a system because of environmental reasons. These can be skipped by using `cargo test...
# Proposal ## Problem statement There is no std-way of retrieving the devices host name. ## Motivating examples or use cases The devices host name is most commonly used as...
The guidance at https://github.com/rust-lang/rfcs/blob/master/libs_changes.md for filing RFCs appears to be quite old and doesn't contain all the detail about how the libs team seems to operate these days. Primarily, it...
# Proposal ## Problem statement In general, code that initializes a buffer doesn't need to care whether that buffer is initialized, however, this leads to an issue. Since `&mut MaybeUninit`...
# Proposal ## Problem statement This proposes a generalization of the existing unstable API `SyncUnsafeCell`. The `SyncUnsafeCell` type – as far as I understand from the [PR](https://github.com/rust-lang/rust/pull/95438) that adds it...
# Proposal Note: this is a proposed alternative to #287 and probably other proposals before it. The solution is not complete, but it describes the problem in a way that...