about summary refs log tree commit diff
path: root/src/librustc_data_structures/owning_ref
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-07-23 22:17:27 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-07-28 18:47:02 +0300
commit676d282dd3cd2dedba651e98c9a41af42983f08b (patch)
tree859875de5c271f683d5b57bb9ec4911e44388f16 /src/librustc_data_structures/owning_ref
parent434152157f9d73ad1899fb8da3a61aed6f8a46d6 (diff)
downloadrust-676d282dd3cd2dedba651e98c9a41af42983f08b.tar.gz
rust-676d282dd3cd2dedba651e98c9a41af42983f08b.zip
Deny `unused_lifetimes` through rustbuild
Diffstat (limited to 'src/librustc_data_structures/owning_ref')
-rw-r--r--src/librustc_data_structures/owning_ref/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_data_structures/owning_ref/mod.rs b/src/librustc_data_structures/owning_ref/mod.rs
index a7af615fa50..3b49ce71063 100644
--- a/src/librustc_data_structures/owning_ref/mod.rs
+++ b/src/librustc_data_structures/owning_ref/mod.rs
@@ -283,6 +283,7 @@ impl<T> Erased for T {}
 /// Helper trait for erasing the concrete type of what an owner dereferences to,
 /// for example `Box<T> -> Box<Erased>`. This would be unneeded with
 /// higher kinded types support in the language.
+#[allow(unused_lifetimes)]
 pub unsafe trait IntoErased<'a> {
     /// Owner with the dereference type substituted to `Erased`.
     type Erased;
@@ -293,6 +294,7 @@ pub unsafe trait IntoErased<'a> {
 /// Helper trait for erasing the concrete type of what an owner dereferences to,
 /// for example `Box<T> -> Box<Erased + Send>`. This would be unneeded with
 /// higher kinded types support in the language.
+#[allow(unused_lifetimes)]
 pub unsafe trait IntoErasedSend<'a> {
     /// Owner with the dereference type substituted to `Erased + Send`.
     type Erased: Send;
@@ -303,6 +305,7 @@ pub unsafe trait IntoErasedSend<'a> {
 /// Helper trait for erasing the concrete type of what an owner dereferences to,
 /// for example `Box<T> -> Box<Erased + Send + Sync>`. This would be unneeded with
 /// higher kinded types support in the language.
+#[allow(unused_lifetimes)]
 pub unsafe trait IntoErasedSendSync<'a> {
     /// Owner with the dereference type substituted to `Erased + Send + Sync`.
     type Erased: Send + Sync;