diff options
author | Haibo Huang <hhb@google.com> | 2021-01-05 21:36:23 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-01-05 21:36:23 -0800 |
commit | 803535edf46cf1e4d0b092b6b2e52ae776b41711 (patch) | |
tree | b4a59a0bf295d7cc3837dd372b5068cb95023fc6 /src | |
parent | 438febf9aeb3ae1f64584c3e316bde5abe74c6ed (diff) | |
download | pin-project-803535edf46cf1e4d0b092b6b2e52ae776b41711.tar.gz |
Upgrade rust/crates/pin-project to 1.0.3
Test: make
Change-Id: I40b14687ddecaafea9fb37915b89a22937816bb6
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 15 | ||||
-rw-r--r-- | src/lib.rs.orig | 15 |
2 files changed, 8 insertions, 22 deletions
@@ -65,23 +65,16 @@ //! [struct-default-expanded]: https://github.com/taiki-e/pin-project/blob/master/examples/struct-default-expanded.rs #![no_std] -#![doc(html_root_url = "https://docs.rs/pin-project/1.0.2")] #![doc(test( no_crate_inject, - attr(deny(warnings, rust_2018_idioms, single_use_lifetimes), allow(dead_code)) + attr( + deny(warnings, rust_2018_idioms, single_use_lifetimes), + allow(dead_code, unused_variables) + ) ))] #![warn(future_incompatible, rust_2018_idioms, single_use_lifetimes, unreachable_pub)] #![warn(missing_docs)] #![warn(clippy::all, clippy::default_trait_access)] -// mem::take, #[non_exhaustive], and Option::{as_deref, as_deref_mut} require Rust 1.40, -// matches! requires Rust 1.42, str::{strip_prefix, strip_suffix} requires Rust 1.45 -#![allow( - clippy::mem_replace_with_default, - clippy::manual_non_exhaustive, - clippy::option_as_ref_deref, - clippy::match_like_matches_macro, - clippy::manual_strip -)] #![allow(clippy::needless_doctest_main)] // ANDROID: Use std to allow building as a dylib. diff --git a/src/lib.rs.orig b/src/lib.rs.orig index 5750c2b..b7a20ed 100644 --- a/src/lib.rs.orig +++ b/src/lib.rs.orig @@ -65,23 +65,16 @@ //! [struct-default-expanded]: https://github.com/taiki-e/pin-project/blob/master/examples/struct-default-expanded.rs #![no_std] -#![doc(html_root_url = "https://docs.rs/pin-project/1.0.2")] #![doc(test( no_crate_inject, - attr(deny(warnings, rust_2018_idioms, single_use_lifetimes), allow(dead_code)) + attr( + deny(warnings, rust_2018_idioms, single_use_lifetimes), + allow(dead_code, unused_variables) + ) ))] #![warn(future_incompatible, rust_2018_idioms, single_use_lifetimes, unreachable_pub)] #![warn(missing_docs)] #![warn(clippy::all, clippy::default_trait_access)] -// mem::take, #[non_exhaustive], and Option::{as_deref, as_deref_mut} require Rust 1.40, -// matches! requires Rust 1.42, str::{strip_prefix, strip_suffix} requires Rust 1.45 -#![allow( - clippy::mem_replace_with_default, - clippy::manual_non_exhaustive, - clippy::option_as_ref_deref, - clippy::match_like_matches_macro, - clippy::manual_strip -)] #![allow(clippy::needless_doctest_main)] #[doc(inline)] |