]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #71508 - oli-obk:alloc_map_unlock, r=RalfJung
authorRalf Jung <post@ralfj.de>
Sat, 9 May 2020 11:36:37 +0000 (13:36 +0200)
committerGitHub <noreply@github.com>
Sat, 9 May 2020 11:36:37 +0000 (13:36 +0200)
commit8c0310d18caf38197f708a6e5a1c03b065373e6c
treeac0f742f2538f6012c49330cc1214507025ec3fa
parentce05553c62689bd58184970cf58e59a663cc4658
parentb07a44d5c4f7f1a834c566e97911f35b01f671bf
Rollup merge of #71508 - oli-obk:alloc_map_unlock, r=RalfJung

Simplify the `tcx.alloc_map` API

This PR changes all functions that require manually locking the `alloc_map` to functions on `TyCtxt` that lock the map internally. In the same step we make the `TyCtxt::alloc_map` field private.

r? @RalfJung
src/librustc_middle/mir/interpret/mod.rs
src/librustc_middle/mir/mod.rs
src/librustc_middle/ty/context.rs
src/librustc_mir/const_eval/eval_queries.rs
src/librustc_mir/interpret/operand.rs
src/librustc_mir/interpret/place.rs
src/librustc_mir/interpret/validity.rs
src/librustc_mir/util/pretty.rs
src/librustc_mir_build/hair/pattern/_match.rs