diff options
| author | bors <bors@rust-lang.org> | 2023-06-21 16:40:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-21 16:40:54 +0000 |
| commit | 006a26c0b546abc0fbef59a773639582b641e500 (patch) | |
| tree | 53cb2b0131ebc998841f468e49f2262b7670965f /library/std/src/sys/unix/env.rs | |
| parent | 536635c89b2b6ec7054473f85a9b7a01932bd7e7 (diff) | |
| parent | 592844cf88b586a87cddf877d8f45e6ffe2a2910 (diff) | |
| download | rust-006a26c0b546abc0fbef59a773639582b641e500.tar.gz rust-006a26c0b546abc0fbef59a773639582b641e500.zip | |
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.
Diffstat (limited to 'library/std/src/sys/unix/env.rs')
0 files changed, 0 insertions, 0 deletions
