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