diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-04-29 18:03:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-29 18:03:24 +0100 |
| commit | 0580588ec62182e1387ad36aaad623284f2d409a (patch) | |
| tree | aafdbb58d1a3fbf4a8c5cb46c914b9a560fa940d /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 3151ad54fb748e0ab750d6e6f94b24d24a694556 (diff) | |
| parent | 2348eb271c95f7ba75333f41b1a303b3b7261b4f (diff) | |
| download | rust-0580588ec62182e1387ad36aaad623284f2d409a.tar.gz rust-0580588ec62182e1387ad36aaad623284f2d409a.zip | |
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`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
