rust/library/core/src/mem
bors 006a26c0b5 Auto merge of #111684 - ChayimFriedman2:unused-offset-of, r=WaffleLapkin
Warn on unused `offset_of!()` result

The usage of `core::hint::must_use()` means that we don't get a specialized message. I figured out that since there are plenty of other methods that just have `#[must_use]` with no message it'll be fine, but it is a bit unfortunate that the error mentions `must_use` and not `offset_of!`.

Fixes #111669.
2023-06-21 16:40:54 +00:00
..
manually_drop.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
maybe_uninit.rs clean up transmutes in core 2023-05-06 13:28:38 +02:00
mod.rs Warn on unused offset_of!() result 2023-06-21 11:43:14 +03:00
transmutability.rs Merge attrs, better validation 2023-06-20 04:38:55 +00:00