Skip to content

Commit 37224e3

Browse files
committed
Ignore mismatched_lifetime_syntaxes lint
warning: lifetime flowing from input to output with different syntax can be confusing --> src/error.rs:489:18 | 489 | pub fn chain(&self) -> Chain { | ^^^^^ ----- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 489 | pub fn chain(&self) -> Chain<'_> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/error.rs:1082:14 | 1082 | fn erase(&self) -> Ref<ErrorImpl> { | ^^^^^ -------------- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 1082 | fn erase(&self) -> Ref<'_, ErrorImpl> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/error.rs:1091:38 | 1091 | pub(crate) unsafe fn error(this: Ref<Self>) -> &(dyn StdError + Send + Sync + 'static) { | ^^^^^^^^^ --------------------------------------- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 1091 | pub(crate) unsafe fn error(this: Ref<'_, Self>) -> &(dyn StdError + Send + Sync + 'static) { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/error.rs:1098:42 | 1098 | pub(crate) unsafe fn error_mut(this: Mut<Self>) -> &mut (dyn StdError + Send + Sync + 'static) { | ^^^^^^^^^ ------------------------------------------- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 1098 | pub(crate) unsafe fn error_mut(this: Mut<'_, Self>) -> &mut (dyn StdError + Send + Sync + 'static) { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/error.rs:1114:42 | 1114 | pub(crate) unsafe fn backtrace(this: Ref<Self>) -> &Backtrace { | ^^^^^^^^^ ---------- the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 1114 | pub(crate) unsafe fn backtrace(this: Ref<'_, Self>) -> &Backtrace { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/ptr.rs:48:19 | 48 | pub fn by_ref(&self) -> Ref<T> { | ^^^^^ ------ the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 48 | pub fn by_ref(&self) -> Ref<'_, T> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/ptr.rs:55:19 | 55 | pub fn by_mut(&mut self) -> Mut<T> { | ^^^^^^^^^ ------ the lifetime gets resolved as `'_` | | | this lifetime flows to the output | help: one option is to remove the lifetime for references and use the anonymous lifetime for paths | 55 | pub fn by_mut(&mut self) -> Mut<'_, T> { | +++
1 parent 11f0e81 commit 37224e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
clippy::wildcard_imports,
239239
clippy::wrong_self_convention
240240
)]
241+
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
241242

242243
#[cfg(all(
243244
anyhow_nightly_testing,

0 commit comments

Comments
 (0)