]> git.lizzy.rs Git - rust.git/commitdiff
fix unused warnings in tests
authorRalf Jung <post@ralfj.de>
Fri, 10 Apr 2020 08:27:59 +0000 (10:27 +0200)
committerRalf Jung <post@ralfj.de>
Fri, 10 Apr 2020 08:27:59 +0000 (10:27 +0200)
tests/compile-fail/deallocate-bad-alignment.rs
tests/compile-fail/deallocate-bad-size.rs
tests/compile-fail/deallocate-twice.rs
tests/compile-fail/reallocate-bad-size.rs
tests/compile-fail/reallocate-change-alloc.rs

index 9b5ee9a934b0b26b5ce3205d7cc1aa53368518b0..621c05344b4acef387ff3544bcc8ad3b964581dc 100644 (file)
@@ -1,4 +1,4 @@
-use std::alloc::{alloc, dealloc, realloc, Layout};
+use std::alloc::{alloc, dealloc, Layout};
 
 // error-pattern: allocation has size 1 and alignment 1, but gave size 1 and alignment 2
 
index 39a0d48c8b1a43f241fc2854d4207a9fe1c047b4..386bb56b90916c5d30099bb22232043fdfe719df 100644 (file)
@@ -1,4 +1,4 @@
-use std::alloc::{alloc, dealloc, realloc, Layout};
+use std::alloc::{alloc, dealloc, Layout};
 
 // error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
 
index 3c5e8e96360c726b0843f78ee6bd320c6b3214cf..67312b0d96ddac13e670d216d89a1208afbc6a39 100644 (file)
@@ -1,4 +1,4 @@
-use std::alloc::{alloc, dealloc, realloc, Layout};
+use std::alloc::{alloc, dealloc, Layout};
 
 // error-pattern: dereferenced after this allocation got freed
 
index bbdef4421b6c2771dd9bde9a9905565260e601fd..7826f26f9b8c6efc6d0d681eebe158faf42c4608 100644 (file)
@@ -1,4 +1,4 @@
-use std::alloc::{alloc, dealloc, realloc, Layout};
+use std::alloc::{alloc, realloc, Layout};
 
 // error-pattern: allocation has size 1 and alignment 1, but gave size 2 and alignment 1
 
index 8130d72dee59698cd9f31fdc44e3cc33f28995a8..297029676962bd702ce058a0a3defa46c304068b 100644 (file)
@@ -1,4 +1,4 @@
-use std::alloc::{alloc, dealloc, realloc, Layout};
+use std::alloc::{alloc, realloc, Layout};
 
 fn main() {
     unsafe {