summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-10-08 10:31:34 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-10-08 10:31:34 -0300
commitba97c812bd97c9a086aea5b3ce89c87e4b0222ec (patch)
tree36c7e909ad9537fa6937d564b74c340e01f4a1b4
parent26d91dee181d6b95b2f864407bcde00c04b7b81d (diff)
Improve errors
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 61b930a..a8f7b7e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "selfref"
-version = "0.2.3"
+version = "0.2.4"
 authors = ["SoniEx2 <endermoneymod@gmail.com>"]
 edition = "2021"
 description = "Semi-pain-free self-referential pinned types"
diff --git a/src/lib.rs b/src/lib.rs
index b6e28fd..b8a4f86 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -232,7 +232,7 @@ pub struct UBCheck<T: ?Sized>(core::marker::PhantomData<T>);
 
 #[cfg(all(not(feature="alloc"), not(feature="nightly")))]
 #[doc(hidden)]
-pub struct UBCheck<T>(T);
+pub struct UBCheck<T>(T); // use feature "alloc" or "nightly" for T: ?Sized
 
 #[cfg(feature="nightly")]
 // SAFETY: dropck's like a Box<T>, but is no-alloc friendly.