rust/library/core
Dylan DPC e892e32df4
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`````
2023-05-20 12:21:00 +05:30
..
benches Rollup merge of #108291 - chenyukang:yukang/fix-benchmarks, r=workingjubilee 2023-05-15 17:12:43 +02:00
primitive_docs
src Auto merge of #111453 - scottmcm:constify-as-slice, r=Mark-Simulacrum 2023-05-19 23:12:36 +00:00
tests Add more tests for the offset_of!() macro 2023-05-18 13:16:17 +02:00
Cargo.toml Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00