immunant / c2rust

Migrate C code to Rust
https://c2rust.com/
Other
3.95k stars 234 forks source link

analyze: add extern statics to gacx.static_tys #1008

Closed spernsteiner closed 1 year ago

spernsteiner commented 1 year ago

This has three parts:

Together, the last two prevent attempts to rewrite extern statics, which would otherwise panic because gen_static_rewrites isn't designed to handle extern statics (it expects the DefId to refer to a non-extern HIR item).