aboutsummaryrefslogtreecommitdiff
path: root/tests/lint.rs
diff options
context:
space:
mode:
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,
}
};
}