diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 17:17:41 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 17:17:41 +0100 |
| commit | c5e05ac0eacefcb621f8cae7a0ddfa8bd526bf21 (patch) | |
| tree | 58eb1320082a631ae871306bbce2220977e315ba /src/layout | |
| parent | 88e50a55afff7b809d4b9d6cfaf93275bfe06f56 (diff) | |
Rename `into_block` to `pack`
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 6e176473..538bcd73 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -267,6 +267,8 @@ impl Debug for PackedNode { impl PartialEq for PackedNode { fn eq(&self, other: &Self) -> bool { + // We cast to thin pointers for comparison because we don't want to + // compare vtables (which can be different across codegen units). std::ptr::eq( Arc::as_ptr(&self.node) as *const (), Arc::as_ptr(&other.node) as *const (), |
