diff options
| author | bors <bors@rust-lang.org> | 2023-11-21 15:08:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-21 15:08:24 +0000 |
| commit | 0ff861096449f47956521b40e5e4e88caa7fe27c (patch) | |
| tree | 07e12f9e0b9148d06b867ff956badddab02159c9 /compiler/rustc_middle/src | |
| parent | e24e5af787f7015914cbf316063ed5821f370b71 (diff) | |
| parent | fa8878bdccb17b3228014fe8dd1494c19a233a6f (diff) | |
| download | rust-0ff861096449f47956521b40e5e4e88caa7fe27c.tar.gz rust-0ff861096449f47956521b40e5e4e88caa7fe27c.zip | |
Auto merge of #118134 - Nilstrieb:rollup-kyo1l6e, r=Nilstrieb
Rollup of 6 pull requests Successful merges: - #116085 (rustdoc-search: add support for traits and associated types) - #117522 (Remove `--check-cfg` checking of command line `--cfg` args) - #118029 (Expand Miri's BorTag GC to a Provenance GC) - #118035 (Fix early param lifetimes in generic_const_exprs) - #118083 (Remove i686-apple-darwin cross-testing) - #118091 (Remove now deprecated target x86_64-sun-solaris.) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/mir/interpret/mod.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/mod.rs b/compiler/rustc_middle/src/mir/interpret/mod.rs index b87c6885e04..e360fb3eaaf 100644 --- a/compiler/rustc_middle/src/mir/interpret/mod.rs +++ b/compiler/rustc_middle/src/mir/interpret/mod.rs @@ -525,13 +525,6 @@ impl<'tcx> TyCtxt<'tcx> { self.alloc_map.lock().reserve() } - /// Miri's provenance GC needs to see all live allocations. The interpreter manages most - /// allocations but some are managed by [`TyCtxt`] and without this method the interpreter - /// doesn't know their [`AllocId`]s are in use. - pub fn iter_allocs<F: FnMut(AllocId)>(self, func: F) { - self.alloc_map.lock().alloc_map.keys().copied().for_each(func) - } - /// Reserves a new ID *if* this allocation has not been dedup-reserved before. /// Should only be used for "symbolic" allocations (function pointers, vtables, statics), we /// don't want to dedup IDs for "real" memory! |
