Esteban Küber
1f82b45b6a
Use #[derive(Default)]
instead of manually implementing it
2024-12-23 03:01:29 +00:00
León Orell Valerian Liehr
e08dc0491a
Library: Rename "object safe" to "dyn compatible"
2024-10-09 18:48:29 +02:00
Ralf Jung
332fa6aa6e
add FIXME(const-hack)
2024-09-08 23:08:40 +02:00
Nicholas Nethercote
84ac80f192
Reformat use
declarations.
...
The previous commit updated `rustfmt.toml` appropriately. This commit is
the outcome of running `x fmt --all` with the new formatting options.
2024-07-29 08:26:52 +10:00
Ralf Jung
b58f647d54
rename ptr::invalid -> ptr::without_provenance
...
also introduce ptr::dangling matching NonNull::dangling
2024-02-21 20:15:52 +01:00
klensy
aa696c5a22
apply fmt
2024-01-11 15:04:48 +03:00
surechen
40ae34194c
remove redundant imports
...
detects redundant imports that can be eliminated.
for #117772 :
In order to facilitate review and modification, split the checking code and
removing redundant imports code into two PR.
2023-12-10 10:56:22 +08:00
ltdk
8337e86b28
Add insta-stable std: #️⃣ :{DefaultHasher, RandomState} exports
2023-11-02 20:35:20 -04:00
Deadbeef
4c6ddc036b
fix library and rustdoc tests
2023-04-16 11:38:52 +00:00
Deadbeef
76dbe29104
rm const traits in libcore
2023-04-16 06:49:27 +00:00
onestacked
56e59bcb27
Test const Hash
, fix nits
2022-11-08 17:39:40 +01:00
Ralf Jung
8c977cfda8
libcore tests: avoid int2ptr casts
2022-06-27 13:30:44 -04:00
Scott McMurray
98054377ee
Add a dedicated length-prefixing method to Hasher
...
This accomplishes two main goals:
- Make it clear who is responsible for prefix-freedom, including how they should do it
- Make it feasible for a `Hasher` that *doesn't* care about Hash-DoS resistance to get better performance by not hashing lengths
This does not change rustc-hash, since that's in an external crate, but that could potentially use it in future.
2022-05-06 00:03:38 -07:00
est31
9e7a319f01
Replace u8to64_le macro with u64::from_le_bytes
...
The macro was a reimplementation of the function.
2022-04-17 22:55:33 +02:00
tamaron
83242897fb
add tests
2022-02-02 23:07:02 +09:00
ibraheemdev
58f988fa40
move object safety test to library/core
2021-08-15 13:00:25 -04:00
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00