about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-22 00:10:44 +0000
committerbors <bors@rust-lang.org>2023-04-22 00:10:44 +0000
commit86d8f1268ae0fbc07ca42233a0eac4668e2af724 (patch)
tree7626ef8494f1499b3f121199e4e5080616f02d4a /tests/rustdoc-js-std/parser-errors.js
parent84bab312abaf810a04eb2ef910b535b524c56c47 (diff)
parent68c4776b4603f453d17b772e4598fee77c48dde8 (diff)
downloadrust-86d8f1268ae0fbc07ca42233a0eac4668e2af724.tar.gz
rust-86d8f1268ae0fbc07ca42233a0eac4668e2af724.zip
Auto merge of #106934 - DrMeepster:offset_of, r=WaffleLapkin
Add offset_of! macro (RFC 3308)

Implements https://github.com/rust-lang/rfcs/pull/3308 (tracking issue #106655) by adding the built in macro `core::mem::offset_of`. Two of the future possibilities are also implemented:

* Nested field accesses (without array indexing)
* DST support (for `Sized` fields)

I wrote this a few months ago, before the RFC merged. Now that it's merged, I decided to rebase and finish it.

cc `@thomcc` (RFC author)
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions