rust/library/core
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
..
benches add benchmark 2023-06-12 13:03:29 +02:00
primitive_docs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
src Auto merge of #111684 - ChayimFriedman2:unused-offset-of, r=WaffleLapkin 2023-06-21 16:40:54 +00:00
tests Rollup merge of #112606 - clarfonthey:ip-display, r=thomcc 2023-06-19 17:53:35 -07:00
Cargo.toml Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00