]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_question_mark.stderr
Auto merge of #10094 - EricWu2003:increment-visitor-fix, r=xFrednet
[rust.git] / tests / ui / needless_question_mark.stderr
1 error: question mark operator is useless here
2   --> $DIR/needless_question_mark.rs:22:12
3    |
4 LL |     return Some(to.magic?);
5    |            ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
6    |
7    = note: `-D clippy::needless-question-mark` implied by `-D warnings`
8
9 error: question mark operator is useless here
10   --> $DIR/needless_question_mark.rs:30:12
11    |
12 LL |     return Some(to.magic?)
13    |            ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
14
15 error: question mark operator is useless here
16   --> $DIR/needless_question_mark.rs:35:5
17    |
18 LL |     Some(to.magic?)
19    |     ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
20
21 error: question mark operator is useless here
22   --> $DIR/needless_question_mark.rs:40:21
23    |
24 LL |     to.and_then(|t| Some(t.magic?))
25    |                     ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic`
26
27 error: question mark operator is useless here
28   --> $DIR/needless_question_mark.rs:49:9
29    |
30 LL |         Some(t.magic?)
31    |         ^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `t.magic`
32
33 error: question mark operator is useless here
34   --> $DIR/needless_question_mark.rs:54:12
35    |
36 LL |     return Ok(tr.magic?);
37    |            ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
38
39 error: question mark operator is useless here
40   --> $DIR/needless_question_mark.rs:61:12
41    |
42 LL |     return Ok(tr.magic?)
43    |            ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
44
45 error: question mark operator is useless here
46   --> $DIR/needless_question_mark.rs:65:5
47    |
48 LL |     Ok(tr.magic?)
49    |     ^^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `tr.magic`
50
51 error: question mark operator is useless here
52   --> $DIR/needless_question_mark.rs:69:21
53    |
54 LL |     tr.and_then(|t| Ok(t.magic?))
55    |                     ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
56
57 error: question mark operator is useless here
58   --> $DIR/needless_question_mark.rs:77:9
59    |
60 LL |         Ok(t.magic?)
61    |         ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
62
63 error: question mark operator is useless here
64   --> $DIR/needless_question_mark.rs:84:16
65    |
66 LL |         return Ok(t.magic?);
67    |                ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `t.magic`
68
69 error: question mark operator is useless here
70   --> $DIR/needless_question_mark.rs:119:27
71    |
72 LL |         || -> Option<_> { Some(Some($expr)?) }()
73    |                           ^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `Some($expr)`
74 ...
75 LL |     let _x = some_and_qmark_in_macro!(x?);
76    |              ---------------------------- in this macro invocation
77    |
78    = note: this error originates in the macro `some_and_qmark_in_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
79
80 error: question mark operator is useless here
81   --> $DIR/needless_question_mark.rs:130:5
82    |
83 LL |     Some(to.magic?)
84    |     ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()`: `to.magic`
85
86 error: question mark operator is useless here
87   --> $DIR/needless_question_mark.rs:138:5
88    |
89 LL |     Ok(s.magic?)
90    |     ^^^^^^^^^^^^ help: try removing question mark and `Ok()`: `s.magic`
91
92 error: aborting due to 14 previous errors
93