about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJashank Jeremy <jashank@rulingia.com>2015-07-31 18:11:10 +1000
committerJashank Jeremy <jashank@rulingia.com>2015-07-31 18:11:10 +1000
commit44e2d3b4fef3d7e1f01576196f334d1ed5df3d8e (patch)
treec47629a923411634526779029d5d0f0f6d019795
parenta7b8f5bc47966bc995004f5905f831be4b68d026 (diff)
downloadrust-44e2d3b4fef3d7e1f01576196f334d1ed5df3d8e.tar.gz
rust-44e2d3b4fef3d7e1f01576196f334d1ed5df3d8e.zip
Fix #27360's unused import
#27360 removed a padding field full of uint8_t's, but didn't remove
the use.  This didn't get picked up presumably because (a) bors
doesn't have any BSD builders, and/or (b) #[cfg]'d out blocks don't
get linted.

```
rustc: x86_64-unknown-freebsd/stage1/lib/rustlib/x86_64-unknown-freebsd/lib/liblibc
src/liblibc/lib.rs:1099:42: 1099:49 error: unused import, #[deny(unused_imports)] on by default
src/liblibc/lib.rs:1099                 use types::common::c99::{uint8_t, uint32_t, int32_t};
                                                                 ^~~~~~~
error: aborting due to previous error
fatal runtime error: Could not unwind stack, error = 159555904
```
-rw-r--r--src/liblibc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index f474841136e..2e82d6973c5 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -1096,7 +1096,7 @@ pub mod types {
             }
             pub mod posix01 {
                 use types::common::c95::{c_void};
-                use types::common::c99::{uint8_t, uint32_t, int32_t};
+                use types::common::c99::{uint32_t, int32_t};
                 use types::os::arch::c95::{c_long, time_t};
                 use types::os::arch::posix88::{dev_t, gid_t, ino_t};
                 use types::os::arch::posix88::{mode_t, off_t};