diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-05-20 12:21:00 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-20 12:21:00 +0530 |
| commit | e892e32df48f9fc180e085fe0d8a4969525c0130 (patch) | |
| tree | 2558d635a673efac0474da4b7cc05e9b4cfdc0f1 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | 13f3585dc6ad4332a171b3ff9a6a3c933241dbb0 (diff) | |
| parent | 30c0e4e72b85c7d125dd05a071027965e2236d64 (diff) | |
| download | rust-e892e32df48f9fc180e085fe0d8a4969525c0130.tar.gz rust-e892e32df48f9fc180e085fe0d8a4969525c0130.zip | |
Rollup merge of #111665 - est31:offset_of_tests, r=WaffleLapkin
Add more tests for the offset_of macro Implements what I [suggested in the tracking issue](https://github.com/rust-lang/rust/issues/106655#issuecomment-1535007205), plus some further improvements: * ensuring that offset_of!(Self, ...) works iff inside an impl block * ensuring that the output type is usize and doesn't coerce. this can be changed in the future, but if it is done, it should be a conscious decision * improving the privacy checking test * ensuring that generics don't let you escape the unsized check r? `````@WaffleLapkin`````
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
