From 4f5a1430fc8f5b35c7120e19a6fed46558522b3c Mon Sep 17 00:00:00 2001 From: svartalf Date: Thu, 28 May 2020 19:18:12 +0300 Subject: [PATCH] Fix CI tests failures caused by https://github.com/rust-lang/rust/issues/72686 --- heim-common/src/lib.rs | 8 +++++++- heim-cpu/src/lib.rs | 8 +++++++- heim-derive/src/lib.rs | 5 +++++ heim-disk/src/lib.rs | 8 +++++++- heim-host/src/lib.rs | 8 +++++++- heim-memory/src/lib.rs | 8 +++++++- heim-net/src/lib.rs | 8 +++++++- heim-process/src/lib.rs | 8 +++++++- heim-runtime/src/lib.rs | 22 ++++++++++++++++++++++ heim-sensors/src/lib.rs | 5 +++++ heim-virt/src/lib.rs | 5 +++++ heim/src/lib.rs | 5 +++++ 12 files changed, 91 insertions(+), 7 deletions(-) diff --git a/heim-common/src/lib.rs b/heim-common/src/lib.rs index de5a6c51..2dc1261b 100644 --- a/heim-common/src/lib.rs +++ b/heim-common/src/lib.rs @@ -23,7 +23,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] mod errors; diff --git a/heim-cpu/src/lib.rs b/heim-cpu/src/lib.rs index 7f1e892d..4716c3c1 100644 --- a/heim-cpu/src/lib.rs +++ b/heim-cpu/src/lib.rs @@ -27,7 +27,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] pub mod os; diff --git a/heim-derive/src/lib.rs b/heim-derive/src/lib.rs index fcb8388a..fa4bc0ce 100644 --- a/heim-derive/src/lib.rs +++ b/heim-derive/src/lib.rs @@ -24,6 +24,11 @@ unused_import_braces, unused_results )] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies +)] #[allow(unused_extern_crates)] extern crate proc_macro; diff --git a/heim-disk/src/lib.rs b/heim-disk/src/lib.rs index 87fc97ab..869acab0 100644 --- a/heim-disk/src/lib.rs +++ b/heim-disk/src/lib.rs @@ -21,7 +21,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] pub mod os; diff --git a/heim-host/src/lib.rs b/heim-host/src/lib.rs index b72f41eb..d3aa2f78 100644 --- a/heim-host/src/lib.rs +++ b/heim-host/src/lib.rs @@ -21,7 +21,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(target_os = "windows")] diff --git a/heim-memory/src/lib.rs b/heim-memory/src/lib.rs index 3ae244d7..341df1b1 100644 --- a/heim-memory/src/lib.rs +++ b/heim-memory/src/lib.rs @@ -21,7 +21,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] mod memory; diff --git a/heim-net/src/lib.rs b/heim-net/src/lib.rs index fa4171f1..37e5c5fc 100644 --- a/heim-net/src/lib.rs +++ b/heim-net/src/lib.rs @@ -21,7 +21,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] pub mod os; diff --git a/heim-process/src/lib.rs b/heim-process/src/lib.rs index 62da6607..10f0beb4 100644 --- a/heim-process/src/lib.rs +++ b/heim-process/src/lib.rs @@ -21,7 +21,13 @@ unused_import_braces, unused_results )] -#![allow(clippy::missing_safety_doc)] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies, + + clippy::missing_safety_doc +)] #![cfg_attr(docsrs, feature(doc_cfg))] mod errors; diff --git a/heim-runtime/src/lib.rs b/heim-runtime/src/lib.rs index fe482fe0..b9cb9e66 100644 --- a/heim-runtime/src/lib.rs +++ b/heim-runtime/src/lib.rs @@ -1,3 +1,25 @@ +#![doc(html_root_url = "https://docs.rs/heim-runtime/0.1.0-beta.1")] +#![deny( + unused, + unused_imports, + unused_features, + bare_trait_objects, + future_incompatible, + missing_debug_implementations, +// missing_docs, // TODO + nonstandard_style, + dead_code, + deprecated, + intra_doc_link_resolution_failure +)] +#![warn( + trivial_casts, + trivial_numeric_casts, + unused_extern_crates, + unused_import_braces, + unused_results +)] + use std::future::Future; pub mod fs; diff --git a/heim-sensors/src/lib.rs b/heim-sensors/src/lib.rs index 10a51ec7..e060cfa4 100644 --- a/heim-sensors/src/lib.rs +++ b/heim-sensors/src/lib.rs @@ -21,6 +21,11 @@ unused_import_braces, unused_results )] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies +)] #![cfg_attr(docsrs, feature(doc_cfg))] mod sys; diff --git a/heim-virt/src/lib.rs b/heim-virt/src/lib.rs index 78a55e59..02a1a2eb 100644 --- a/heim-virt/src/lib.rs +++ b/heim-virt/src/lib.rs @@ -27,6 +27,11 @@ unused_import_braces, unused_results )] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies +)] #![cfg_attr(docsrs, feature(doc_cfg))] mod sys; diff --git a/heim/src/lib.rs b/heim/src/lib.rs index 43a6af7f..97c4de93 100644 --- a/heim/src/lib.rs +++ b/heim/src/lib.rs @@ -65,6 +65,11 @@ unused_import_braces, unused_results )] +#![allow( + // Next two are temporary, see https://github.com/rust-lang/rust/issues/72686 + unknown_lints, + unused_crate_dependencies +)] #![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "cpu")]