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"
170170# # Following lints should be tackled at some point
171171borrowed_box = " allow"
172172derived_hash_with_manual_eq = " allow"
173- forget_non_drop = " allow"
174173needless_doctest_main = " allow"
175174too_many_arguments = " allow"
176175type_complexity = " allow"
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ impl DropScopeToken {
126126 }
127127}
128128
129+ impl Drop for DropScopeToken {
130+ fn drop ( & mut self ) { }
131+ }
132+
129133// Uncomment this to make `DropScopeToken` a drop bomb. Unfortunately we can't do this in release, since
130134// in cases that mir lowering fails, we don't handle (and don't need to handle) drop scopes so it will be
131135// 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