{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiadi7xsqulqgh7vyrxjaxdxsuxvbaoebwuciaqfs7qqctxtyaz2k4",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mfv6fruqzxy2"
},
"path": "/t/what-s-where-size-kind-extra/23987#post_10",
"publishedAt": "2026-02-26T22:57:03.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Ok, makes sence. Thank you so much for your effort!\n\nAlas both pairs generate differing asm, so guess it’s not zero cost. I’d hoped that after inlining the compiler would see through it, but apparently not.\n\n\n black_box(ArrConcat([65u8; 9], [65]).as_slice()[9]);\n black_box([65u8; 10][9]);\n\n black_box(black_box(ArrConcat([65u8; 9], [65]).as_slice()) == black_box(ArrConcat([65u8; 9], [65]).as_slice()));\n black_box(black_box([65u8; 10]) == black_box([65u8; 10]));\n",
"title": "What’s where [(); SIZE + Kind::EXTRA]:?"
}