script: Remove AsVoidPtr and AsCCharPtrPtr traits (#42153)

We migrated most uses some years ago, so let's finally remove them. It's
more clear what we are doing if we inline stuff then hiding dangerous
cast behind trait.

Testing: Covered by WPT, try run:
https://github.com/sagudev/servo/actions/runs/21350967668

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Sam
2026-01-26 11:47:35 +01:00
committed by GitHub
parent 3bb7c5f1f4
commit 3047b9946f
5 changed files with 12 additions and 30 deletions

View File

@@ -4053,7 +4053,7 @@ let traps = ProxyTraps {{
isConstructor: None,
}};
CreateProxyHandler(&traps, unsafe {{ Class.get() }}.as_void_ptr())\
CreateProxyHandler(&traps, unsafe {{ Class.get() }} as *const _ as *const libc::c_void)\
""")