Fix more tests
This commit is contained in:
parent
4a619aa126
commit
a97aeb41d4
8 changed files with 0 additions and 10 deletions
|
|
@ -45,8 +45,6 @@ pub mod glfw {
|
|||
}
|
||||
|
||||
fn issue_6533() {
|
||||
use glfw;
|
||||
|
||||
fn action_to_str(state: glfw::InputState) -> &'static str {
|
||||
use glfw::{RELEASE, PRESS, REPEAT};
|
||||
match state {
|
||||
|
|
|
|||
|
|
@ -238,7 +238,6 @@ pub fn main() {
|
|||
// Basic test to make sure that we can invoke the `write!` macro with an
|
||||
// fmt::Write instance.
|
||||
fn test_write() {
|
||||
use std::fmt::Write;
|
||||
let mut buf = String::new();
|
||||
write!(&mut buf, "{}", 3);
|
||||
{
|
||||
|
|
@ -267,7 +266,6 @@ fn test_print() {
|
|||
// Just make sure that the macros are defined, there's not really a lot that we
|
||||
// can do with them just yet (to test the output)
|
||||
fn test_format_args() {
|
||||
use std::fmt::Write;
|
||||
let mut buf = String::new();
|
||||
{
|
||||
let w = &mut buf;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ fn foo() {
|
|||
#[cfg(unix)]
|
||||
fn check_status(status: std::process::ExitStatus)
|
||||
{
|
||||
use libc;
|
||||
use std::os::unix::process::ExitStatusExt;
|
||||
|
||||
assert!(status.signal() == Some(libc::SIGILL)
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@ macro_rules! reexport {
|
|||
reexport!();
|
||||
|
||||
fn main() {
|
||||
use Bar;
|
||||
fn f(_: Bar) {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ fn arena() -> &'static ArenaSet<Vec<u8>> {
|
|||
fn require_sync<T: Sync>(_: &T) { }
|
||||
unsafe fn __stability() -> &'static ArenaSet<Vec<u8>> {
|
||||
use std::mem::transmute;
|
||||
use std::boxed::Box;
|
||||
static mut DATA: *const ArenaSet<Vec<u8>> = 0 as *const ArenaSet<Vec<u8>>;
|
||||
|
||||
static mut ONCE: Once = ONCE_INIT;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ fn loud_recurse() {
|
|||
#[cfg(unix)]
|
||||
fn check_status(status: std::process::ExitStatus)
|
||||
{
|
||||
use libc;
|
||||
use std::os::unix::process::ExitStatusExt;
|
||||
|
||||
assert!(!status.success());
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
use xcrate::Z;
|
||||
|
||||
fn f() {
|
||||
use xcrate;
|
||||
use xcrate as ycrate;
|
||||
let s = xcrate::S;
|
||||
assert_eq!(format!("{:?}", s), "S");
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ where T : Convert<U>
|
|||
}
|
||||
|
||||
fn main() {
|
||||
use std::default::Default;
|
||||
// T = i16, U = u32
|
||||
test(22_i16, Default::default(), 2, 4);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue