Commit 9411ce1
authored
Rollup merge of rust-lang#118799 - GKFX:stabilize-simple-offsetof, r=wesleywiser
Stabilize single-field offset_of
This PR stabilizes offset_of for a single field. There has been some further discussion at rust-lang#106655 about whether this is advisable; I'm opening the PR anyway so that the code is available.4 files changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1306 | 1309 | | |
1307 | 1310 | | |
1308 | 1311 | | |
1309 | | - | |
1310 | | - | |
1311 | 1312 | | |
1312 | 1313 | | |
1313 | 1314 | | |
| |||
1330 | 1331 | | |
1331 | 1332 | | |
1332 | 1333 | | |
1333 | | - | |
1334 | | - | |
1335 | 1334 | | |
1336 | 1335 | | |
1337 | 1336 | | |
| |||
1359 | 1358 | | |
1360 | 1359 | | |
1361 | 1360 | | |
1362 | | - | |
1363 | | - | |
| 1361 | + | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
| |||
1396 | 1394 | | |
1397 | 1395 | | |
1398 | 1396 | | |
1399 | | - | |
| 1397 | + | |
1400 | 1398 | | |
1401 | 1399 | | |
1402 | 1400 | | |
1403 | 1401 | | |
1404 | 1402 | | |
1405 | 1403 | | |
1406 | 1404 | | |
1407 | | - | |
| 1405 | + | |
1408 | 1406 | | |
1409 | 1407 | | |
1410 | 1408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
| |||
0 commit comments