2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:23:12
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | return Some(to.magic?);
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-question-mark` implied by `-D warnings`
|
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:31:12
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | return Some(to.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:36:5
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | Some(to.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:41:21
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | to.and_then(|t| Some(t.magic?))
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:50:9
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | Some(t.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:55:12
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(tr.magic?);
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:62:12
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(tr.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:66:5
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | Ok(tr.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:70:21
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | tr.and_then(|t| Ok(t.magic?))
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:78:9
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | Ok(t.magic?)
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-01-30 17:06:34 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:85:16
|
2021-01-15 09:56:44 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(t.magic?);
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
|
2021-01-15 09:56:44 +00:00
|
|
|
|
2021-03-12 14:30:50 +00:00
|
|
|
error: question mark operator is useless here
|
2021-05-04 21:22:43 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:120:27
|
2021-03-25 18:29:11 +00:00
|
|
|
|
|
|
|
|
LL | || -> Option<_> { Some(Some($expr)?) }()
|
2021-11-25 01:10:50 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `Some($expr)`
|
2021-03-25 18:29:11 +00:00
|
|
|
...
|
|
|
|
LL | let _x = some_and_qmark_in_macro!(x?);
|
|
|
|
| ---------------------------- in this macro invocation
|
|
|
|
|
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this error originates in the macro `some_and_qmark_in_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-03-25 18:29:11 +00:00
|
|
|
|
2021-04-27 14:55:11 +00:00
|
|
|
error: aborting due to 12 previous errors
|
2021-01-15 09:56:44 +00:00
|
|
|
|