sapir / gcc-rust

a (WIP) Rust frontend for gcc / a gcc backend for rustc
GNU General Public License v2.0
203 stars 5 forks source link

Handle boxes #6

Open sapir opened 4 years ago

sapir commented 4 years ago

Also, Drop and DropAndReplace for box types?

bjorn3 commented 4 years ago

DropAndReplace gets desugared to Drop + Assign. NullOp::Box calls the exchange_malloc lang item: https://github.com/bjorn3/rustc_codegen_cranelift/blob/7ff01a4d59779609992aad947264abcc64617917/src/base.rs#L463