Skip to content

Commit

Permalink
Auto merge of #15652 - servo:nolibc, r=nox
Browse files Browse the repository at this point in the history
Remove usage of unstable libc crate.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15652)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Feb 20, 2017
2 parents 58aa6ce + 381f696 commit ca6ebcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions support/rust-task_info/src/lib.rs
Expand Up @@ -10,9 +10,5 @@
#![crate_name = "task_info"]
#![crate_type = "rlib"]

#![feature(libc)]

extern crate libc;

pub mod task_basic_info;

5 changes: 4 additions & 1 deletion support/rust-task_info/src/task_basic_info.rs
Expand Up @@ -10,7 +10,10 @@
//! Interface to the measurements in the task_basic_info struct, gathered by
//! invoking `task_info()` with the `TASK_BASIC_INFO` flavor.

use libc::{c_int, size_t};
use std::os::raw::c_int;

#[allow(non_camel_case_types)]
type size_t = usize;

/// Obtains task_basic_info::virtual_size.
pub fn virtual_size() -> Option<usize> {
Expand Down

0 comments on commit ca6ebcb

Please sign in to comment.