]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_data_structures/ptr_key.rs
New upstream version 1.34.2+dfsg1
[rustc.git] / src / librustc_data_structures / ptr_key.rs
index 322dcbe8f08fbbc7a8fb41cb4fb792cf3ac5a496..bf3ae2d7af58f77fae0d27e4ad8789856e727429 100644 (file)
@@ -4,7 +4,7 @@ use std::ops::Deref;
 /// 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 }