Uh oh!
There was an error while loading. Please reload this page.
place "place projection" definition in glossary - #2231
Conversation
The term is defined in 2 separate places, and the definitions do not match.
ee20d57 to
aecd061Compareehuss
commented
Apr 20, 2026
I'm not sure these are intended to be the same. @RalfJung Is the definition of place projection intended to be the same for these two scenarios (closure capture and UB pointer arithmetic)? |
RalfJung
commented
Apr 20, 2026
Yeah this changes the opsem page to suddenly include pointer deref's and that doesn't make sense in that context (since it is talking about pointer arithmetic, and a deref isn't pointer arithmetic). |
tshepang
commented
May 2, 2026
since this is about pointer arithmetic, should field expression be removed from the more narrow definiton of place expression |
RalfJung
commented
May 2, 2026
We should probably reword the UB page to use a different term, since it only refers to a few specific place projections. |
would this work
|
RalfJung
commented
May 3, 2026
You forgot "field expression". I would suggest something like #2253. |
rustbot
commented
May 5, 2026
☔ The latest upstream changes (possibly #2203) made this pull request unmergeable. Please resolve the merge conflicts. |
I actually thought it was accidental, since I assumed that, given offset works only with integers, then only APIs taking integers were connected to this rule. |
Please don't make silent assumptions. Instead, ask for clarification. :) It was very much deliberate. |
The term is defined in 2 separate places, and the definitions do not match.