diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-06 18:45:04 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-06 18:45:04 +0100 |
| commit | cecd7a9ae69689a884b4baf0a0c871a5b9eb1bb4 (patch) | |
| tree | 90d4573ed8b862249bafcfb531f80279f437af14 /src/pointer.rs | |
| parent | 4ca3384db63fcc938b2ed58b9c6f42ef93442e47 (diff) | |
| download | rust-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.rs | 3 |
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) } |
