Skip to content

Commit

Permalink
Correct BOX_NEW path in unnecessary_conversion_for_trait
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 20, 2025
1 parent afee2f0 commit 0c63c92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c63c92

Please sign in to comment.