Commit 07d2bca
committed
Ignore mismatched_lifetime_syntaxes lint
warning: lifetime flowing from input to output with different syntax can be confusing
--> macro/src/generics.rs:70:43
|
70 | pub(crate) fn to_underscore_lifetimes(&self) -> UnderscoreLifetimes {
| ^^^^^ ------------------- 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
|
70 | pub(crate) fn to_underscore_lifetimes(&self) -> UnderscoreLifetimes<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> syntax/instantiate.rs:30:28
|
30 | pub(crate) fn impl_key(&self) -> Option<ImplKey> {
| ^^^^^ ------- 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
|
30 | pub(crate) fn impl_key(&self) -> Option<ImplKey<'_>> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> syntax/map.rs:29:28
|
29 | pub(crate) fn iter(&self) -> Iter<K, V> {
| ^^^^^ ---------- 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
|
29 | pub(crate) fn iter(&self) -> Iter<'_, K, V> {
| +++
warning: lifetime flowing from input to output with different syntax can be confusing
--> syntax/map.rs:115:29
|
115 | pub(crate) fn entry(&mut self, key: K) -> Entry<K, V> {
| ^^^^^^^^^ ----------- 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
|
115 | pub(crate) fn entry(&mut self, key: K) -> Entry<'_, K, V> {
| +++
warning: lifetime flowing from input to output with different syntax can be confusing
--> syntax/namespace.rs:22:24
|
22 | pub(crate) fn iter(&self) -> Iter<Ident> {
| ^^^^^ ----------- 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
|
22 | pub(crate) fn iter(&self) -> Iter<'_, Ident> {
| +++
warning: lifetime flowing from input to output with different syntax can be confusing
--> macro/src/tokens.rs:11:22
|
11 | pub(crate) fn ty(&self) -> ReceiverType {
| ^^^^^ ------------ 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
|
11 | pub(crate) fn ty(&self) -> ReceiverType<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> macro/src/tokens.rs:16:27
|
16 | pub(crate) fn ty_self(&self) -> ReceiverTypeSelf {
| ^^^^^ ---------------- 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
|
16 | pub(crate) fn ty_self(&self) -> ReceiverTypeSelf<'_> {
| ++++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/cxx_vector.rs:166:17
|
166 | pub fn iter(&self) -> Iter<T> {
| ^^^^^ ------- 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
|
166 | pub fn iter(&self) -> Iter<'_, T> {
| +++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/cxx_vector.rs:171:31
|
171 | pub fn iter_mut(self: Pin<&mut Self>) -> IterMut<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
|
171 | pub fn iter_mut(self: Pin<&mut Self>) -> IterMut<'_, T> {
| +++
warning: lifetime flowing from input to output with different syntax can be confusing
--> src/cxx_string.rs:169:28
|
169 | pub fn to_string_lossy(&self) -> Cow<str> {
| ^^^^^ -------- 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
|
169 | pub fn to_string_lossy(&self) -> Cow<'_, str> {
| +++1 parent 00fb850 commit 07d2bca
File tree
8 files changed
+26
-2
lines changed- gen
- build/src
- cmd/src
- lib/src
- macro/src
- src
- tests
- ffi
- ui
8 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments