Rollup merge of #64503 - RalfJung:miri-retag, r=oli-obk
rename Allocation::retag -> with_tags_and_extra This is more consistent with `Pointer::with_tag`. Also, "retag" is a [term from Stacked Borrows](https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md#retagging) with a [corresponding Machine hook](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/machine/trait.Machine.html#method.retag), and this function has nothing to do with that other use of the term. r? @oli-obk
This commit is contained in:
commit
dbce655eda
@ -130,9 +130,9 @@ impl<Tag> Allocation<Tag> {
|
||||
}
|
||||
}
|
||||
|
||||
impl Allocation<()> {
|
||||
impl Allocation<(), ()> {
|
||||
/// Add Tag and Extra fields
|
||||
pub fn retag<T, E>(
|
||||
pub fn with_tags_and_extra<T, E>(
|
||||
self,
|
||||
mut tagger: impl FnMut(AllocId) -> T,
|
||||
extra: E,
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit d88138723780d11ca2c09560111223dc20b9d5f3
|
||||
Subproject commit 130f9488d3b861e02c9282b686eec717e30912cf
|
Loading…
x
Reference in New Issue
Block a user