Module rustc_lint::tail_expr_drop_order
source ยท Structsยง
- Lint
Tail ๐Expr - Lint
Visitor ๐ - Local
Collector ๐
Staticsยง
- The
tail_expr_drop_order
lint looks for those values generated at the tail expression location, that of type with a significantDrop
implementation, such as locks. In case there are also local variables of type with significantDrop
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.