about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/noop_method_call.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-11-16 11:48:37 +0000
committerbors <bors@rust-lang.org>2021-11-16 11:48:37 +0000
commitd914f17ca71a33a89b2dc3436fca51b1a091559e (patch)
tree4b2fcee2292f4cde976ec83a11c7918d52a8fcbe /compiler/rustc_lint/src/noop_method_call.rs
parent934624fe5f66ce3fb8abf0597a6deb079783335f (diff)
parentfb80c73fb3fd7fd18cedf716ff3c3cdc8d90f93d (diff)
downloadrust-d914f17ca71a33a89b2dc3436fca51b1a091559e.tar.gz
rust-d914f17ca71a33a89b2dc3436fca51b1a091559e.zip
Auto merge of #90919 - nnethercote:rm-DropArena, r=Mark-Simulacrum
Remove `DropArena`.

Most arena-allocate types that impl `Drop` get their own `TypedArena`, but a
few infrequently used ones share a `DropArena`. This sharing adds complexity
but doesn't help performance or memory usage. Perhaps it was more effective in
the past prior to some other improvements to arenas.

This commit removes `DropArena` and the sharing of arenas via the `few`
attribute of the `arena_types` macro. This change removes over 100 lines of
code and nine uses of `unsafe` (one of which affects the parallel compiler) and
makes the remaining code easier to read.
Diffstat (limited to 'compiler/rustc_lint/src/noop_method_call.rs')
0 files changed, 0 insertions, 0 deletions