Auto merge of #10434 - Jarcho:snip_context, r=dswij
Remove `snippet_with_macro_callsite` `snippet_with_context` is used instead to support nested macro calls. changelog: None
This commit is contained in:
commit
f19db28361
22 changed files with 200 additions and 193 deletions
|
|
@ -69,8 +69,8 @@ fn issue5504() {
|
|||
}
|
||||
|
||||
fn try_result_opt() -> Result<i32, i32> {
|
||||
while (r#try!(result_opt())).is_some() {}
|
||||
if (r#try!(result_opt())).is_some() {}
|
||||
while r#try!(result_opt()).is_some() {}
|
||||
if r#try!(result_opt()).is_some() {}
|
||||
Ok(42)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,13 +88,13 @@ error: redundant pattern matching, consider using `is_some()`
|
|||
--> $DIR/redundant_pattern_matching_result.rs:84:19
|
||||
|
|
||||
LL | while let Some(_) = r#try!(result_opt()) {}
|
||||
| ----------^^^^^^^----------------------- help: try this: `while (r#try!(result_opt())).is_some()`
|
||||
| ----------^^^^^^^----------------------- help: try this: `while r#try!(result_opt()).is_some()`
|
||||
|
||||
error: redundant pattern matching, consider using `is_some()`
|
||||
--> $DIR/redundant_pattern_matching_result.rs:85:16
|
||||
|
|
||||
LL | if let Some(_) = r#try!(result_opt()) {}
|
||||
| -------^^^^^^^----------------------- help: try this: `if (r#try!(result_opt())).is_some()`
|
||||
| -------^^^^^^^----------------------- help: try this: `if r#try!(result_opt()).is_some()`
|
||||
|
||||
error: redundant pattern matching, consider using `is_some()`
|
||||
--> $DIR/redundant_pattern_matching_result.rs:91:12
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue