From 85deec44d7a070eb5b9bd00e20387f5af3242ca3 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 22 Jun 2023 11:41:58 +0200 Subject: [PATCH] rusticl: specify allowed lints for tests in lib.rs Sadly, meson doesn't allow us to specify custom flags for test targets yet Acked-by: Eric Engestrom Part-of: --- src/gallium/frontends/rusticl/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/rusticl/lib.rs b/src/gallium/frontends/rusticl/lib.rs index 7c9ec0171e3..e34b87d32e0 100644 --- a/src/gallium/frontends/rusticl/lib.rs +++ b/src/gallium/frontends/rusticl/lib.rs @@ -1,5 +1,8 @@ // Copyright 2020 Red Hat. // SPDX-License-Identifier: MIT +#![cfg_attr(test, allow(dead_code))] +#![cfg_attr(test, allow(unused_imports))] + mod api; pub mod core;