Skip to content

Commit dad4a67

Browse files
Fix more tests
1 parent 0ddd6b9 commit dad4a67

File tree

8 files changed

+0
-10
lines changed

8 files changed

+0
-10
lines changed

src/test/run-pass/binding/match-arm-statics.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ pub mod glfw {
4545
}
4646

4747
fn issue_6533() {
48-
use glfw;
49-
5048
fn action_to_str(state: glfw::InputState) -> &'static str {
5149
use glfw::{RELEASE, PRESS, REPEAT};
5250
match state {

src/test/run-pass/ifmt.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ pub fn main() {
238238
// Basic test to make sure that we can invoke the `write!` macro with an
239239
// fmt::Write instance.
240240
fn test_write() {
241-
use std::fmt::Write;
242241
let mut buf = String::new();
243242
write!(&mut buf, "{}", 3);
244243
{
@@ -267,7 +266,6 @@ fn test_print() {
267266
// Just make sure that the macros are defined, there's not really a lot that we
268267
// can do with them just yet (to test the output)
269268
fn test_format_args() {
270-
use std::fmt::Write;
271269
let mut buf = String::new();
272270
{
273271
let w = &mut buf;

src/test/run-pass/invalid_const_promotion.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ fn foo() {
2525
#[cfg(unix)]
2626
fn check_status(status: std::process::ExitStatus)
2727
{
28-
use libc;
2928
use std::os::unix::process::ExitStatusExt;
3029

3130
assert!(status.signal() == Some(libc::SIGILL)

src/test/run-pass/issues/issue-38556.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ macro_rules! reexport {
99
reexport!();
1010

1111
fn main() {
12-
use Bar;
1312
fn f(_: Bar) {}
1413
}

src/test/run-pass/issues/issue-39367.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ fn arena() -> &'static ArenaSet<Vec<u8>> {
1515
fn require_sync<T: Sync>(_: &T) { }
1616
unsafe fn __stability() -> &'static ArenaSet<Vec<u8>> {
1717
use std::mem::transmute;
18-
use std::boxed::Box;
1918
static mut DATA: *const ArenaSet<Vec<u8>> = 0 as *const ArenaSet<Vec<u8>>;
2019

2120
static mut ONCE: Once = ONCE_INIT;

src/test/run-pass/out-of-stack.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ fn loud_recurse() {
3636
#[cfg(unix)]
3737
fn check_status(status: std::process::ExitStatus)
3838
{
39-
use libc;
4039
use std::os::unix::process::ExitStatusExt;
4140

4241
assert!(!status.success());

src/test/run-pass/rfcs/rfc-2126-extern-absolute-paths/basic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use xcrate::Z;
88

99
fn f() {
10-
use xcrate;
1110
use xcrate as ycrate;
1211
let s = xcrate::S;
1312
assert_eq!(format!("{:?}", s), "S");

src/test/run-pass/traits/traits-multidispatch-infer-convert-target.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ where T : Convert<U>
2828
}
2929

3030
fn main() {
31-
use std::default::Default;
3231
// T = i16, U = u32
3332
test(22_i16, Default::default(), 2, 4);
3433

0 commit comments

Comments
 (0)