rust/library/alloc/src
Matthias Krüger c052d263d0
Rollup merge of #141289 - compiler-errors:more-self, r=jhpratt
use `Self` alias in self types rather than manually substituting it

Of the rougly 145 uses of `self: Ty` in the standard library, 5 of them don't use `Self` but instead choose to manually "substitute" the `impl`'s self type into the type.

This leads to weird behavior sometimes (https://github.com/rust-lang/rust/issues/140611#issuecomment-2883761300) -- **to be clear**, none of these usages actually trigger any bugs, but it's possible that they may break in the future (or at least lead to lints), so let's just "fix" them proactively.
2025-05-20 20:57:28 +02:00
..
boxed library: Use size_of from the prelude instead of imported 2025-03-06 20:20:38 -08:00
collections Rollup merge of #140668 - vkrivopalov:vecdeque-truncate-front, r=jhpratt 2025-05-07 00:29:24 +00:00
ffi update version placeholders 2025-05-12 15:33:30 +02:00
raw_vec Simplify Vec::as_non_null implementation and make it const 2025-05-05 21:56:33 +02:00
vec Rollup merge of #140685 - viliml:patch-1, r=Mark-Simulacrum 2025-05-15 22:28:50 +02:00
alloc.rs update cfgs 2025-04-09 12:29:59 +01:00
borrow.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
boxed.rs replace version placeholder 2025-04-09 12:29:59 +01:00
bstr.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
fmt.rs Fix typo in documentation 2025-04-12 22:26:38 +08:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs use generic Atomic type where possible 2025-04-27 02:18:08 +03:00
macros.rs Streamline the format macro. 2025-04-28 06:56:13 +10:00
rc.rs Update rc.rs docs 2025-05-06 13:19:42 -07:00
slice.rs Fully test the alloc crate through alloctests 2025-03-07 19:11:13 +00:00
str.rs use Self alias in self types rather than manually substituting it 2025-05-20 16:03:04 +02:00
string.rs Auto merge of #136264 - GuillaumeGomez:optimize-integers-to-string, r=Amanieu 2025-05-15 20:20:30 +00:00
sync.rs Auto merge of #136316 - GrigorenkoPV:generic_atomic, r=Mark-Simulacrum 2025-04-28 05:12:59 +00:00
task.rs Stabilize noop_waker 2024-12-05 14:14:17 -08:00