about summary refs log tree commit diff
path: root/src/pointer.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-03-06 18:45:04 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2021-03-06 18:45:04 +0100
commitcecd7a9ae69689a884b4baf0a0c871a5b9eb1bb4 (patch)
tree90d4573ed8b862249bafcfb531f80279f437af14 /src/pointer.rs
parent4ca3384db63fcc938b2ed58b9c6f42ef93442e47 (diff)
downloadrust-cecd7a9ae69689a884b4baf0a0c871a5b9eb1bb4.tar.gz
rust-cecd7a9ae69689a884b4baf0a0c871a5b9eb1bb4.zip
Add clif comments when in release mode
Fixes #1130
Diffstat (limited to 'src/pointer.rs')
-rw-r--r--src/pointer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pointer.rs b/src/pointer.rs
index 88a78f3214d..31d827f83bf 100644
--- a/src/pointer.rs
+++ b/src/pointer.rs
@@ -39,8 +39,7 @@ impl Pointer {
         Pointer { base: PointerBase::Dangling(align), offset: Offset32::new(0) }
     }
 
-    #[cfg(debug_assertions)]
-    pub(crate) fn base_and_offset(self) -> (PointerBase, Offset32) {
+    pub(crate) fn debug_base_and_offset(self) -> (PointerBase, Offset32) {
         (self.base, self.offset)
     }