]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_data_structures/ptr_key.rs
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[rust.git] / src / librustc_data_structures / ptr_key.rs
index 322dcbe8f08fbbc7a8fb41cb4fb792cf3ac5a496..bf3ae2d7af58f77fae0d27e4ad8789856e727429 100644 (file)
@@ -4,7 +4,7 @@
 /// A wrapper around reference that compares and hashes like a pointer.
 /// Can be used as a key in sets/maps indexed by pointers to avoid `unsafe`.
 #[derive(Debug)]
-pub struct PtrKey<'a, T: 'a>(pub &'a T);
+pub struct PtrKey<'a, T>(pub &'a T);
 
 impl<'a, T> Clone for PtrKey<'a, T> {
     fn clone(&self) -> Self { *self }