From d9e489b48ce2bf4f490b1d578ff48a41dd8736f7 Mon Sep 17 00:00:00 2001 From: mu001999 Date: Thu, 8 Aug 2024 08:17:55 +0800 Subject: [PATCH] Removes dead code from the compiler --- alloc/tests/boxed.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/alloc/tests/boxed.rs b/alloc/tests/boxed.rs index faee64b2f6738..bfc31a626fadd 100644 --- a/alloc/tests/boxed.rs +++ b/alloc/tests/boxed.rs @@ -59,6 +59,7 @@ fn box_deref_lval() { assert_eq!(x.get(), 1000); } +#[allow(unused)] pub struct ConstAllocator; unsafe impl Allocator for ConstAllocator {