rust/src/liballoc
Mazdak Farrokhzad 9b22fdc121
Rollup merge of #69860 - faern:use-assoc-int-consts, r=dtolnay
Use associated numeric consts in documentation

Now when the associated constants on int/float types are stabilized and the recommended way of accessing said constants (#68952). We can start using it in this repository, and recommend it via documentation example code.

This PR is the reincarnation of #67913 minus the actual adding + stabilization of said constants. (EDIT: Now it's only changing the documentation. So users will see the new consts, but we don't yet update the internal code)

Because of how fast bit rot happens to PRs that touch this many files, it does not try to replace 100% of the old usage of the constants in the entire repo, but a good chunk of them.
2020-04-03 22:55:02 +02:00
..
alloc Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
benches BTreeMap/BTreeSet: implement and test drain_filter 2020-03-29 16:05:53 +02:00
collections Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu 2020-04-02 06:08:35 +00:00
prelude
raw_vec Remove alignment from MemoryBlock 2020-03-26 17:14:12 +01:00
rc
sync
tests Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu 2020-04-02 06:08:35 +00:00
alloc.rs Implement init and init_offset on AllocInit and mark it unsafe 2020-03-29 01:47:05 +01:00
borrow.rs
boxed.rs Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
Cargo.toml
fmt.rs Add note about localization to std::fmt docs 2020-03-09 12:31:33 -04:00
lib.rs Fix issues from review and unsoundness of RawVec::into_box 2020-03-26 17:11:47 +01:00
macros.rs expand vec![] to Vec::new() 2020-03-31 21:37:13 +02:00
raw_vec.rs Add missing allocation guard in RawVec::grow 2020-04-01 10:26:30 +02:00
rc.rs Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
slice.rs Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
str.rs Replace max/min_value() with MAX/MIN assoc consts 2020-04-03 09:33:10 +02:00
string.rs Optimize strip_prefix and strip_suffix with str patterns 2020-03-30 11:10:21 -04:00
sync.rs Make fields in MemoryBlock public 2020-03-28 20:22:07 +01:00
task.rs Fix link in task::Wake docs 2020-04-03 11:33:27 +02:00
tests.rs
vec.rs Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu 2020-04-02 06:08:35 +00:00