From 8dad5d0b4b2734c700b9e67794e65ac7f1f176f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 19 Mar 2024 21:54:42 +0100 Subject: [PATCH] link dead code --- src/flags.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flags.rs b/src/flags.rs index bc7cd54..69d6b8f 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -817,6 +817,7 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[ "-Zcrate-attr=feature(yeet_expr)", "-Zcrate-attr=feature(const_refs_to_static)", "-Zcrate-attr=feature(unnamed_fields)", + "-Clink-dead-code=true", ], /* rustc codegen gcc &["--edition=2021"],