Commit 1ccc5a2
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
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments