Skip to content

Commit

Permalink
Fixed: iOS build was broken because of deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
vhbit committed Sep 23, 2014
1 parent 2f9669c commit cef8661
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/libstd/os.rs
Expand Up @@ -1173,9 +1173,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
let utf_c_str: *const libc::c_char =
mem::transmute(objc_msgSend(tmp, utf8Sel));
let s = CString::new(utf_c_str, false);
if s.is_not_null() {
res.push(s.as_bytes_no_nul().to_vec())
}
res.push(s.as_bytes_no_nul().to_vec())
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/libstd/rt/backtrace.rs
Expand Up @@ -278,9 +278,10 @@ mod imp {
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};

// skipping the first one as it is write itself
result::fold_(range(1, cnt).map(|i| {
let iter = range(1, cnt).map(|i| {
print(w, i as int, buf[i])
}))
});
result::fold(iter, (), |_, _| ())
}

#[cfg(not(target_os = "ios", target_arch = "arm"))]
Expand Down

5 comments on commit cef8661

@bors
Copy link
Contributor

@bors bors commented on cef8661 Sep 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at vhbit@cef8661

@bors
Copy link
Contributor

@bors bors commented on cef8661 Sep 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging vhbit/rust/ios-deprecation-fix = cef8661 into auto

@bors
Copy link
Contributor

@bors bors commented on cef8661 Sep 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vhbit/rust/ios-deprecation-fix = cef8661 merged ok, testing candidate = e0bd16c

@bors
Copy link
Contributor

@bors bors commented on cef8661 Sep 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on cef8661 Sep 24, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = e0bd16c

Please sign in to comment.