File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ useless_asref = "allow"
170
170
# # Following lints should be tackled at some point
171
171
borrowed_box = " allow"
172
172
derived_hash_with_manual_eq = " allow"
173
- forget_non_drop = " allow"
174
173
needless_doctest_main = " allow"
175
174
too_many_arguments = " allow"
176
175
type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ impl DropScopeToken {
126
126
}
127
127
}
128
128
129
+ impl Drop for DropScopeToken {
130
+ fn drop ( & mut self ) { }
131
+ }
132
+
129
133
// Uncomment this to make `DropScopeToken` a drop bomb. Unfortunately we can't do this in release, since
130
134
// in cases that mir lowering fails, we don't handle (and don't need to handle) drop scopes so it will be
131
135
// actually reached. `pop_drop_scope_assert_finished` will also detect this case, but doesn't show useful
You can’t perform that action at this time.
0 commit comments