Skip to content

Commit f0eff99

Browse files
eduardosmtgross35
authored andcommitted
Remove unneeded extern crates and imports
(backport <#3897>) (cherry picked from commit ba1b27f)
1 parent ae7b38d commit f0eff99

14 files changed

+0
-20
lines changed

libc-test/build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![deny(warnings)]
22

3-
extern crate cc;
43
extern crate ctest2 as ctest;
54

65
use std::fs::File;

libc-test/test/cmsg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Compare libc's CMSG(3) family of functions against the actual C macros, for
22
//! various inputs.
33
4-
extern crate libc;
5-
64
#[cfg(unix)]
75
mod t {
86

libc-test/test/errqueue.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Compare libc's SO_EE_OFFENDER function against the actual C macro
22
3-
extern crate libc;
4-
53
#[cfg(any(target_os = "linux", target_os = "android"))]
64
mod t {
75
use libc::{self, sock_extended_err, sockaddr};

libc-test/test/linux_elf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(target_os = "linux")]

libc-test/test/linux_fcntl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(any(target_os = "linux", target_os = "android"))]

libc-test/test/linux_if_arp.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(any(target_os = "linux", target_os = "android"))]

libc-test/test/linux_ipv6.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(target_os = "linux")]

libc-test/test/linux_kernel_version.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Compare libc's KERNEL_VERSION macro against a specific kernel version.
22
3-
extern crate libc;
4-
53
#[cfg(
64
target_os = "linux",
75
)]

libc-test/test/linux_strerror_r.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(any(target_os = "linux", target_os = "android"))]

libc-test/test/linux_termios.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![allow(bad_style, improper_ctypes, unused, deprecated)]
22

3-
extern crate libc;
43
use libc::*;
54

65
#[cfg(any(target_os = "linux", target_os = "android"))]

libc-test/test/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![allow(bad_style, improper_ctypes, deprecated)]
2-
extern crate libc;
32

43
use libc::*;
54

libc-test/test/makedev.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//! Compare libc's makdev function against the actual C macros, for various
22
//! inputs.
33
4-
extern crate libc;
5-
64
#[cfg(any(
75
target_os = "android",
86
target_os = "dragonfly",

libc-test/test/semver.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![allow(unused_imports)]
22
#![allow(deprecated)]
33

4-
extern crate libc;
5-
64
// Generated in `build.rs`.
75
include!(concat!(env!("OUT_DIR"), "/semver.rs"));
86

libc-test/test/sigrt.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Compare libc's SIGRTMAX and SIGRTMIN functions against the actual C macros
22
3-
extern crate libc;
4-
53
#[cfg(any(
64
target_os = "linux",
75
target_os = "l4re",

0 commit comments

Comments
 (0)