Skip to content

Commit 8002cde

Browse files
update wording
1 parent d51b702 commit 8002cde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_lint/src/tail_expr_drop_order.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ use crate::{LateContext, LateLintPass};
1515

1616
declare_lint! {
1717
/// The `tail_expr_drop_order` lint looks for those values generated at the tail expression location,
18-
/// that of type with a custom `Drop` destructor implementation, which will be dropped earlier in Edition 2024.
19-
/// Your discretion on the new drop order introduced by Edition 2024 is required.
18+
/// that runs a custom `Drop` destructor.
19+
/// Some of them may be dropped earlier in Edition 2024 that they used to in Edition 2021 and prior.
20+
/// This lint detects those cases and provides you information on those values and their custom destructor implementations.
21+
/// Your discretion on this information is required.
2022
///
2123
/// ### Example
2224
/// ```rust,edition2021

0 commit comments

Comments
 (0)