diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/pin-project-lite/tests/lint.rs | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/pin-project-lite/tests/lint.rs')
-rw-r--r-- | vendor/pin-project-lite/tests/lint.rs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/vendor/pin-project-lite/tests/lint.rs b/vendor/pin-project-lite/tests/lint.rs index cc3f3951c..94f72fddf 100644 --- a/vendor/pin-project-lite/tests/lint.rs +++ b/vendor/pin-project-lite/tests/lint.rs @@ -10,7 +10,7 @@ // 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_op_in_unsafe_fn: requires Rust 1.52. and, we don't generate unsafe fn. -// non_exhaustive_omitted_patterns: unstable +// non_exhaustive_omitted_patterns, multiple_supertrait_upcastable: 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, must_not_suspend: unrelated // unsafe_code: checked in forbid_unsafe module @@ -18,6 +18,7 @@ box_pointers, deprecated_in_future, fuzzy_provenance_casts, + invalid_reference_casting, let_underscore_drop, lossy_provenance_casts, macro_use_extern_crate, @@ -44,7 +45,12 @@ )] #![warn(clippy::all, clippy::pedantic, clippy::nursery, clippy::restriction)] #![allow(clippy::blanket_clippy_restriction_lints)] // this is a test, so enable all restriction lints intentionally. -#![allow(clippy::exhaustive_structs, clippy::exhaustive_enums, clippy::single_char_lifetime_names)] // TODO +#![allow( + clippy::exhaustive_enums, + clippy::exhaustive_structs, + clippy::min_ident_chars, + clippy::single_char_lifetime_names +)] // TODO pub mod basic { include!("include/basic.rs"); @@ -65,6 +71,7 @@ pub mod box_pointers { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[derive(Debug)] pub enum Enum { Struct { @@ -96,6 +103,7 @@ pub mod explicit_outlives_requirements { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[derive(Debug)] pub enum Enum<'a, T, U> where @@ -118,6 +126,7 @@ pub mod variant_size_differences { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[allow(missing_debug_implementations, missing_copy_implementations)] // https://github.com/rust-lang/rust/pull/74060 #[allow(variant_size_differences)] // for the type itself #[allow(clippy::large_enum_variant)] // for the type itself @@ -143,6 +152,7 @@ pub mod clippy_mut_mut { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[derive(Debug)] pub enum Enum<'a, T, U> { Struct { @@ -171,6 +181,7 @@ mod clippy_redundant_pub_crate { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[derive(Debug)] pub enum Enum<T, U> { Struct { @@ -202,6 +213,7 @@ pub mod clippy_type_repetition_in_bounds { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] #[derive(Debug)] pub enum Enum<T, U> where @@ -232,6 +244,7 @@ pub mod clippy_used_underscore_binding { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] pub enum Enum<T, U> { Struct { #[pin] @@ -256,6 +269,7 @@ pub mod clippy_ref_option_ref { pin_project! { #[project = EnumProj] #[project_ref = EnumProjRef] + #[project(!Unpin)] pub enum Enum<'a> { Struct { #[pin] |