rust/library/core
许杰友 Jieyou Xu (Joe) 0580588ec6
Rollup merge of #124484 - GKFX:offset_of_must_use, r=jieyouxu
Fix #124478 - offset_of! returns a temporary

This was due to the must_use() call. Adding HIR's `OffsetOf` to the must_use checking within the compiler avoids this issue while maintaining the lint output.

Fixes #124478. `@tgross35`
2024-04-29 18:03:24 +01:00
..
benches Rollup merge of #115913 - FedericoStra:checked_ilog, r=the8472 2024-04-22 20:25:58 +02:00
src Rollup merge of #124484 - GKFX:offset_of_must_use, r=jieyouxu 2024-04-29 18:03:24 +01:00
tests Auto merge of #123909 - dtolnay:utf8chunks, r=joboet 2024-04-26 17:41:24 +00:00
Cargo.toml Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00