Skip to content

Commit 25f8ee6

Browse files
committed
Ignore mismatched_lifetime_syntaxes lint
warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/attr.rs:69:19 | 69 | pub fn get(input: &[Attribute]) -> Result<Attrs> { | ^^^^^^^^^^^^ ----- 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 | 69 | pub fn get(input: &[Attribute]) -> Result<Attrs<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:7:30 | 7 | pub(crate) fn from_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 7 | pub(crate) fn from_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:11:32 | 11 | pub(crate) fn source_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 11 | pub(crate) fn source_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:15:35 | 15 | pub(crate) fn backtrace_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 15 | pub(crate) fn backtrace_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:19:44 | 19 | pub(crate) fn distinct_backtrace_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 19 | pub(crate) fn distinct_backtrace_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:54:30 | 54 | pub(crate) fn from_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 54 | pub(crate) fn from_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:58:32 | 58 | pub(crate) fn source_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 58 | pub(crate) fn source_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:62:35 | 62 | pub(crate) fn backtrace_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 62 | pub(crate) fn backtrace_field(&self) -> Option<&Field<'_>> { | ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> impl/src/prop.rs:66:44 | 66 | pub(crate) fn distinct_backtrace_field(&self) -> Option<&Field> { | ^^^^^ ------ | | || | | |the lifetimes get resolved as `'_` | | the lifetimes get 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 | 66 | pub(crate) fn distinct_backtrace_field(&self) -> Option<&Field<'_>> { | ++++
1 parent 9abad43 commit 25f8ee6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

impl/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
clippy::too_many_lines,
1616
clippy::wrong_self_convention
1717
)]
18+
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
1819

1920
extern crate proc_macro;
2021

0 commit comments

Comments
 (0)