detect attributed variables by properly detecting them in copy_term/2

This commit is contained in:
Mark Thom
2021-11-29 19:22:26 -07:00
parent 1a86ad5cec
commit ef3a97cedd
3 changed files with 8 additions and 51 deletions

View File

@@ -221,9 +221,9 @@ impl TrailEntry {
#[inline(always)]
pub(crate) fn get_tag(self) -> TrailEntryTag {
match self.tag_or_err() {
Ok(tag) => tag,
Err(_) => TrailEntryTag::TrailedAttachedValue,
}
Ok(tag) => tag,
Err(_) => TrailEntryTag::TrailedAttachedValue,
}
}
#[inline]