Fix build on nightly

Nightly recently fixed some soundness issues related to `Sized`. This had to be fixed in the cocoa crates as well, and also affects our ios bindings.
This commit is contained in:
Brendan Zabarauskas 2017-07-01 16:47:53 +10:00
parent 51036e6ba5
commit 886eab5c7e
3 changed files with 11 additions and 15 deletions

View file

@ -66,7 +66,7 @@ extern {
pub fn longjmp(env: *mut libc::c_void, val: libc::c_int);
}
pub trait NSString {
pub trait NSString: Sized {
unsafe fn alloc(_: Self) -> id {
msg_send![class("NSString"), alloc]
}