From 6623b3da7d6851ccf42186871c7e325abc5c250a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 6 Jun 2019 15:35:31 +0200 Subject: [PATCH 1/1] we use tag 0 so let's not use a NonZero type --- ralf/_posts/2019-04-30-stacked-borrows-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ralf/_posts/2019-04-30-stacked-borrows-2.md b/ralf/_posts/2019-04-30-stacked-borrows-2.md index 5731826..669d49d 100644 --- a/ralf/_posts/2019-04-30-stacked-borrows-2.md +++ b/ralf/_posts/2019-04-30-stacked-borrows-2.md @@ -80,7 +80,7 @@ pub struct Stack { {% endhighlight %} The *tag* is also simpler than it was before: there are no longer separate tags for mutable and shared references. {% highlight rust %} -pub type PtrId = NonZeroU64; +pub type PtrId = u64; pub enum Tag { Tagged(PtrId), Untagged, -- 2.30.2