Commit 2c70b4c
lang: remove problematic offsetof macro in favor of built-in offset_of
With rust 1.93 the `deref_nullptr` lint changed from a warning to an
error [0].
Instead of fixing this macro to not use nullptr anymore, we can just
remove it completely, as nowadays one can use the built-in offset_of
macro [1], which is available since rust 1.77.
Further, checking the source of all our crates [3] did not show any
current usage anymore.
[0]: rust-lang/rust#148122
[1]: https://doc.rust-lang.org/stable/std/mem/macro.offset_of.html
[2]: grep -R 'offsetof!' /usr/share/cargo/registry
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Acked-by: Christian Ebner <c.ebner@proxmox.com>
Link: https://lore.proxmox.com/20260126141215.401447-1-m.sandoval@proxmox.com
[TL: add references and background for why it's fine to remove]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>1 parent bcb9c3e commit 2c70b4c
1 file changed
Lines changed: 0 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 69 | | |
92 | 70 | | |
93 | 71 | | |
| |||
0 commit comments