-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit 37224e3
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 37224e3Copy full SHA for 37224e3
Expand file treeCollapse file tree
1 file changed
+1
-0
lines changed+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
238 | 238 |
| |
239 | 239 |
| |
240 | 240 |
| |
| 241 | + | |
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
|
0 commit comments