Change rust interface on drop function to take a mut pointer instead.
This will match the drop trait interface more closely.
libgrust/ChangeLog:
* libproc_macro/rust/bridge/ident.rs: Change drop
function interface.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
extern "C" {
fn Ident__new(string: *const c_uchar, len: u64) -> Ident;
fn Ident__new_raw(string: *const c_uchar, len: u64) -> Ident;
- fn Ident__drop(ident: *const Ident);
+ fn Ident__drop(ident: *mut Ident);
fn Ident__clone(ident: *const Ident) -> Ident;
}
impl Drop for Ident {
fn drop(&mut self) {
- unsafe { Ident__drop(self as *const Ident) }
+ unsafe { Ident__drop(self as *mut Ident) }
}
}