]> git.lizzy.rs Git - rust.git/commitdiff
Merge #3656
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 19 Mar 2020 17:47:43 +0000 (17:47 +0000)
committerGitHub <noreply@github.com>
Thu, 19 Mar 2020 17:47:43 +0000 (17:47 +0000)
3656: Simplify arenas r=matklad a=matklad

At the moment, Arena is paranetrized by two types: index and data. The original motivation was to allow index to be defined in the downstream crate, so that you can add inherent impls to the index.

However, it seems like we've never actually used that capability, so perhaps we should switch to a generic Index impl? This PR tries this out, switching only `raw.rs` and parts of `hir_def`.

wdyt?

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>

Trivial merge