aboutsummaryrefslogtreecommitdiff
path: root/tests/lint.rs
diff options
context:
space:
mode:
authorDavid LeGare <legare@google.com>2022-03-02 21:37:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-03-02 21:37:58 +0000
commit365fe11dc7cf47ae04d945af513246d19dfc00e8 (patch)
tree80c46c7f97eb0158db00b2c4710dd54073c36733 /tests/lint.rs
parent23cdec702c0235804c847247f16c7bc73f9d9fce (diff)
parentac81d17ea0cce1b865bbecae5677eeef7b1703e4 (diff)
downloadpin-project-365fe11dc7cf47ae04d945af513246d19dfc00e8.tar.gz
Update pin-project to 1.0.10 am: 8915193b0d am: ac81d17ea0
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/2005953 Change-Id: I44e3dfdc6c005d46e30a740e77bb74955ccdfbd8
Diffstat (limited to 'tests/lint.rs')
-rw-r--r--tests/lint.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lint.rs b/tests/lint.rs
index 5cdd2c6..6a75461 100644
--- a/tests/lint.rs
+++ b/tests/lint.rs
@@ -8,7 +8,8 @@
#![forbid(future_incompatible, rust_2018_compatibility, rust_2021_compatibility)]
// lints forbidden as a part of future_incompatible, rust_2018_compatibility, and rust_2021_compatibility are not included in the list below.
// elided_lifetimes_in_paths, explicit_outlives_requirements, unused_extern_crates: as a part of rust_2018_idioms
-// unsafe_block_in_unsafe_fn: unsafe_block_in_unsafe_fn: requires Rust 1.52. and, we don't generate unsafe fn.
+// unsafe_block_in_unsafe_fn: requires Rust 1.52. and, we don't generate unsafe fn.
+// non_exhaustive_omitted_patterns: unstable
// unstable_features: no way to generate #![feature(..)] by macros, expect for unstable inner attribute. and this lint is deprecated: https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unstable-features
// unused_crate_dependencies: unrelated
// unsafe_code: checked in forbid_unsafe module
@@ -772,7 +773,7 @@ pub mod single_use_lifetimes {
for<'pin, 'pin_, 'pin__> &'pin &'pin_ &'pin__ T: Unpin,
{
#[pin]
- f: &'pin___ mut T,
+ _f: &'pin___ mut T,
}
pub mod inside_macro {
@@ -795,7 +796,7 @@ pub mod single_use_lifetimes {
for<'pin, 'pin_, 'pin__> &'pin &'pin_ &'pin__ T: Unpin,
{
#[pin]
- f: &'pin___ mut T,
+ _f: &'pin___ mut T,
}
};
}