about summary refs log tree commit diff
path: root/compiler/rustc_lint/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2021-11-15 17:15:42 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2021-11-15 18:33:43 +1100
commitfb80c73fb3fd7fd18cedf716ff3c3cdc8d90f93d (patch)
tree9f0d64450b594f4463138abc948e688d67e6d3df /compiler/rustc_lint/src
parentad442399756573dccacb314b6bf8079964bcc72a (diff)
downloadrust-fb80c73fb3fd7fd18cedf716ff3c3cdc8d90f93d.tar.gz
rust-fb80c73fb3fd7fd18cedf716ff3c3cdc8d90f93d.zip
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')
0 files changed, 0 insertions, 0 deletions