rust/library/alloc/src/collections
Matthias Krüger e3420f4464
Rollup merge of #135367 - Urgau:unreach_pub-std-3, r=Noratrieb
Enable `unreachable_pub` lint in `alloc`

This PR enables the [`unreachable_pub`](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unreachable-pub) lint as warn in the `alloc` crate.

Most of changes are in the btree implementation and in tests.

*The diff was mostly generated with `./x.py fix --stage 1 library/alloc/ -- --broken-code`, as well as manual edits for code in macros and in tests.*

Continuation of #134286 and #135366

r? libs
2025-01-28 14:23:21 +01:00
..
binary_heap Less unwrap() in documentation 2024-12-21 01:26:47 +00:00
btree Rollup merge of #135367 - Urgau:unreach_pub-std-3, r=Noratrieb 2025-01-28 14:23:21 +01:00
linked_list alloc: add #![warn(unreachable_pub)] 2025-01-20 18:50:56 +01:00
vec_deque Implement VecDeque::pop_front_if & VecDeque::pop_back_if 2025-01-22 20:04:36 +03:00
linked_list.rs remove bounds from vec and linkedlist ExtractIf 2024-12-16 22:06:52 +01:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00