@@ -67,40 +67,52 @@ LL | map.entry(42).or_insert(String::new());
6767 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `or_insert_with(String::new)`
6868
6969error: use of `or_insert` followed by a function call
70- --> $DIR/or_fun_call.rs:66:21
70+ --> $DIR/or_fun_call.rs:66:23
71+ |
72+ LL | map_vec.entry(42).or_insert(vec![]);
73+ | ^^^^^^^^^^^^^^^^^ help: try this: `or_insert_with(Vec::new)`
74+
75+ error: use of `or_insert` followed by a function call
76+ --> $DIR/or_fun_call.rs:69:21
7177 |
7278LL | btree.entry(42).or_insert(String::new());
7379 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `or_insert_with(String::new)`
7480
81+ error: use of `or_insert` followed by a function call
82+ --> $DIR/or_fun_call.rs:72:25
83+ |
84+ LL | btree_vec.entry(42).or_insert(vec![]);
85+ | ^^^^^^^^^^^^^^^^^ help: try this: `or_insert_with(Vec::new)`
86+
7587error: use of `unwrap_or` followed by a function call
76- --> $DIR/or_fun_call.rs:69 :21
88+ --> $DIR/or_fun_call.rs:75 :21
7789 |
7890LL | let _ = stringy.unwrap_or("".to_owned());
7991 | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| "".to_owned())`
8092
8193error: use of `unwrap_or` followed by a function call
82- --> $DIR/or_fun_call.rs:77 :21
94+ --> $DIR/or_fun_call.rs:83 :21
8395 |
8496LL | let _ = Some(1).unwrap_or(map[&1]);
8597 | ^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| map[&1])`
8698
8799error: use of `unwrap_or` followed by a function call
88- --> $DIR/or_fun_call.rs:79 :21
100+ --> $DIR/or_fun_call.rs:85 :21
89101 |
90102LL | let _ = Some(1).unwrap_or(map[&1]);
91103 | ^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| map[&1])`
92104
93105error: use of `or` followed by a function call
94- --> $DIR/or_fun_call.rs:103 :35
106+ --> $DIR/or_fun_call.rs:109 :35
95107 |
96108LL | let _ = Some("a".to_string()).or(Some("b".to_string()));
97109 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `or_else(|| Some("b".to_string()))`
98110
99111error: use of `or` followed by a function call
100- --> $DIR/or_fun_call.rs:107 :10
112+ --> $DIR/or_fun_call.rs:113 :10
101113 |
102114LL | .or(Some(Bar(b, Duration::from_secs(2))));
103115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `or_else(|| Some(Bar(b, Duration::from_secs(2))))`
104116
105- error: aborting due to 17 previous errors
117+ error: aborting due to 19 previous errors
106118
0 commit comments