From 0c63c9212295f5b40ccf2c7dc18fcdd2435d6db9 Mon Sep 17 00:00:00 2001 From: Samuel Moelius Date: Mon, 20 Jan 2025 12:55:30 +0000 Subject: [PATCH] Correct `BOX_NEW` path in `unnecessary_conversion_for_trait` https://github.com/rust-lang/rust/commit/ac9cb908ac4301dfc25e7a2edee574320022ae2c --- .../supplementary/unnecessary_conversion_for_trait/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/supplementary/unnecessary_conversion_for_trait/src/lib.rs b/examples/supplementary/unnecessary_conversion_for_trait/src/lib.rs index 0c785b5b4..3fe27539c 100644 --- a/examples/supplementary/unnecessary_conversion_for_trait/src/lib.rs +++ b/examples/supplementary/unnecessary_conversion_for_trait/src/lib.rs @@ -642,7 +642,7 @@ fn ancestor_addr_of_mutabilities<'tcx>( } fn peel_boxes<'tcx>(cx: &LateContext<'tcx>, mut expr: &'tcx Expr<'tcx>) -> &'tcx Expr<'tcx> { - const BOX_NEW: [&str; 4] = ["alloc", "boxed", "Box", "new"]; + const BOX_NEW: [&str; 3] = ["alloc", "boxed", "box_new"]; #[cfg_attr(dylint_lib = "supplementary", expect(commented_code))] loop {