Skip to content

Commit d276d95

Browse files
committed
fix unused warnings in tests
1 parent bc65281 commit d276d95

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/compile-fail/deallocate-bad-alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::alloc::{alloc, dealloc, realloc, Layout};
1+
use std::alloc::{alloc, dealloc, Layout};
22

33
// error-pattern: allocation has size 1 and alignment 1, but gave size 1 and alignment 2
44

tests/compile-fail/deallocate-bad-size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::alloc::{alloc, dealloc, realloc, Layout};
1+
use std::alloc::{alloc, dealloc, Layout};
22

33
// error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
44

tests/compile-fail/deallocate-twice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::alloc::{alloc, dealloc, realloc, Layout};
1+
use std::alloc::{alloc, dealloc, Layout};
22

33
// error-pattern: dereferenced after this allocation got freed
44

tests/compile-fail/reallocate-bad-size.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::alloc::{alloc, dealloc, realloc, Layout};
1+
use std::alloc::{alloc, realloc, Layout};
22

33
// error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
44

tests/compile-fail/reallocate-change-alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::alloc::{alloc, dealloc, realloc, Layout};
1+
use std::alloc::{alloc, realloc, Layout};
22

33
fn main() {
44
unsafe {

0 commit comments

Comments
 (0)