File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
- // This test ensures that `tail_expr_drop_order` does not activate in case Edition 2024 is not used
2
- // or the feature gate `shorter_tail_lifetimes` is disabled.
1
+ // This test ensures that `tail_expr_drop_order` does not activate in case Edition 2024 is used
2
+ // because this is a migration lint.
3
+ // Only `cargo fix --edition 2024` shall activate this lint.
3
4
4
- //@ revisions: neither no_feature_gate edition_less_than_2024
5
+ //@ revisions: neither no_feature_gate edition_at_least_2024
5
6
//@ check-pass
6
- //@ [neither] edition: 2021
7
- //@ [no_feature_gate] compile-flags: -Z unstable-options
8
- //@ [no_feature_gate] edition: 2024
9
- //@ [edition_less_than_2024] edition: 2021
7
+ //@ compile-flags: -Z unstable-options
8
+ //@ edition: 2024
10
9
11
10
#![ deny( tail_expr_drop_order) ]
12
- #![ cfg_attr( edition_less_than_2024, feature( shorter_tail_lifetimes) ) ]
13
11
14
12
struct LoudDropper ;
15
13
impl Drop for LoudDropper {
You can’t perform that action at this time.
0 commit comments