rustc_lint

Module tail_expr_drop_order

source

Structsยง

Staticsยง

  • The tail_expr_drop_order lint looks for those values generated at the tail expression location, that of type with a significant Drop implementation, such as locks. In case there are also local variables of type with significant Drop implementation as well, this lint warns you of a potential transposition in the drop order. Your discretion on the new drop order introduced by Edition 2024 is required.