Skip to content

Commit 1ccc5a2

Browse files
committed
Ignore mismatched_lifetime_syntaxes lint
warning: lifetime flowing from input to output with different syntax can be confusing --> src/parse.rs:125:25 | 125 | fn block_comment(input: Cursor) -> PResult<&str> { | ^^^^^^ ------------- | | | | | | | the lifetimes get resolved as `'_` | | the lifetimes get 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 | 125 | fn block_comment(input: Cursor<'_>) -> PResult<'_, &str> { | ++++ +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/parse.rs:318:25 | 318 | fn ident_not_raw(input: Cursor) -> PResult<&str> { | ^^^^^^ ------------- | | | | | | | 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 | 318 | fn ident_not_raw(input: Cursor<'_>) -> PResult<'_, &str> { | ++++ +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/parse.rs:474:35 | 474 | fn delimiter_of_raw_string(input: Cursor) -> PResult<&str> { | ^^^^^^ ------------- | | | | | | | 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 | 474 | fn delimiter_of_raw_string(input: Cursor<'_>) -> PResult<'_, &str> { | ++++ +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/parse.rs:957:32 | 957 | fn doc_comment_contents(input: Cursor) -> PResult<(&str, bool)> { | ^^^^^^ --------------------- | | | | | | | 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 | 957 | fn doc_comment_contents(input: Cursor<'_>) -> PResult<'_, (&str, bool)> { | ++++ +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/parse.rs:980:37 | 980 | fn take_until_newline_or_eof(input: Cursor) -> (Cursor, &str) { | ^^^^^^ ------ ---- 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 | 980 | fn take_until_newline_or_eof(input: Cursor<'_>) -> (Cursor<'_>, &str) { | ++++ ++++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/rcvec.rs:33:24 | 33 | pub(crate) fn iter(&self) -> slice::Iter<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 | 33 | pub(crate) fn iter(&self) -> slice::Iter<'_, T> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/rcvec.rs:37:28 | 37 | pub(crate) fn make_mut(&mut self) -> RcVecMut<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 | 37 | pub(crate) fn make_mut(&mut self) -> RcVecMut<'_, T> | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/rcvec.rs:46:27 | 46 | pub(crate) fn get_mut(&mut self) -> Option<RcVecMut<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 | 46 | pub(crate) fn get_mut(&mut self) -> Option<RcVecMut<'_, T>> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/rcvec.rs:83:26 | 83 | pub(crate) fn as_mut(&mut self) -> RcVecMut<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 | 83 | pub(crate) fn as_mut(&mut self) -> RcVecMut<'_, T> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/rcvec.rs:105:26 | 105 | pub(crate) fn as_mut(&mut self) -> RcVecMut<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 | 105 | pub(crate) fn as_mut(&mut self) -> RcVecMut<'_, T> { | +++ warning: lifetime flowing from input to output with different syntax can be confusing --> src/fallback.rs:204:20 | 204 | fn get_cursor(src: &str) -> Cursor { | ^^^^ ------ 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 | 204 | fn get_cursor(src: &str) -> Cursor<'_> { | ++++
1 parent 1091cc2 commit 1ccc5a2

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
@@ -115,6 +115,7 @@
115115
clippy::used_underscore_binding,
116116
clippy::vec_init_then_push
117117
)]
118+
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
118119

119120
#[cfg(all(procmacro2_semver_exempt, wrap_proc_macro, not(super_unstable)))]
120121
compile_error! {"\

0 commit comments

Comments
 (0)