bors b00236d7f0 Auto merge of #11580 - y21:issue11579, r=Jarcho
[`manual_let_else`]: only omit block if span is from same ctxt

Fixes #11579.

The lint already had logic for omitting a block in `else` if a block is already present, however this didn't handle the case where the block is from a different expansion/syntax context. E.g.
```rs
macro_rules! panic_in_block {
  () => { { panic!() } }
}

let _ = match Some(1) {
  Some(v) => v,
  _ => panic_in_block!()
};
```
It would see this in its expanded form as `_ => { panic!() }` and think it doesn't have to include a block in its suggestion because it is already there, however that's not true if it's from a different expansion like in this case.

changelog: [`manual_let_else`]: only omit block in suggestion if the block is from the same expansion
2023-09-29 18:49:57 +00:00
..
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-17 19:44:25 +08:00
2023-09-12 17:32:11 +02:00
2023-09-23 13:47:30 +00:00
2023-09-23 13:47:30 +00:00
2023-09-16 00:05:57 +08:00
2023-09-16 00:05:57 +08:00
2023-09-26 13:49:15 +00:00
2023-09-26 13:49:15 +00:00
2023-09-22 18:04:57 +02:00
2023-09-22 18:04:57 +02:00