Skip to content

Commit dbce655

Browse files
authored
Rollup merge of rust-lang#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
2 parents a8aa511 + 686170e commit dbce655

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc/mir/interpret/allocation.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ impl<Tag> Allocation<Tag> {
130130
}
131131
}
132132

133-
impl Allocation<()> {
133+
impl Allocation<(), ()> {
134134
/// Add Tag and Extra fields
135-
pub fn retag<T, E>(
135+
pub fn with_tags_and_extra<T, E>(
136136
self,
137137
mut tagger: impl FnMut(AllocId) -> T,
138138
extra: E,

src/tools/miri

Submodule miri updated 1 file

0 commit comments

Comments
 (0)