bors
8af4e09605
Auto merge of #4458 - flip1995:block_in_if_ext_macro, r=phansch
...
Allow block_in_if_{stmt,expr} in external macro
I found this by running `cargo fix --clippy` on quite a big codebase.
You could refactor this assert to
```rust
let block_expr = _;
assert!(block_expr);
```
but,
1. it doesn't increase the readability IMO
2. That isn't possible in a `debug_assert!`
I'm not sure though, if we should allow this for macros in general or just for external macros.
changelog: Allow `block_in_if_{stmt,expr}` in external macros
2019-09-09 14:55:33 +00:00
..
2019-08-26 10:22:34 +02:00
2019-08-26 15:28:35 +02:00
2019-08-29 18:37:43 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-27 09:43:19 +02:00
2019-08-30 07:22:35 +02:00
2019-08-30 07:22:35 +02:00
2019-08-30 07:22:35 +02:00
2019-08-30 07:22:35 +02:00
2019-09-04 08:50:55 -04:00
2019-09-04 08:50:55 -04:00
2019-09-04 08:50:55 -04:00
2019-09-04 08:50:55 -04:00
2019-09-04 08:50:55 -04:00
2019-08-29 11:54:18 +02:00
2019-09-08 16:27:54 +01:00
2019-09-08 16:27:54 +01:00
2019-08-21 07:35:04 +02:00
2019-08-21 07:35:04 +02:00
2019-08-26 14:45:28 +02:00
2019-08-26 14:45:28 +02:00
2019-09-03 00:17:23 +09:00
2019-09-05 00:24:45 +09:00
2019-09-01 07:55:29 +02:00
2019-09-01 07:55:29 +02:00
2019-08-23 09:16:50 +00:00
2019-08-23 09:16:50 +00:00
2019-08-23 09:16:50 +00:00
2019-09-03 06:25:54 +02:00
2019-09-03 06:25:54 +02:00
2019-08-28 06:46:26 +09:00
2019-08-28 06:46:26 +09:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:29:30 +02:00
2019-08-20 23:21:39 +00:00
2019-08-20 23:21:39 +00:00
2019-08-19 20:22:42 +12:00
2019-08-26 16:11:43 +07:00
2019-09-04 18:38:25 +09:00
2019-09-04 18:38:25 +09:00
2019-09-04 18:38:25 +09:00
2019-08-25 07:10:45 +02:00
2019-08-25 07:10:45 +02:00
2019-08-25 07:10:45 +02:00
2019-09-03 18:56:23 +02:00
2019-09-03 18:56:23 +02:00
2019-09-01 08:11:40 +02:00
2019-09-01 08:11:40 +02:00
2019-08-22 07:41:00 +02:00
2019-08-22 07:41:00 +02:00
2019-08-22 07:41:00 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-29 17:34:33 +02:00
2019-09-05 22:45:52 +09:00
2019-09-05 22:45:52 +09:00
2019-09-05 22:45:52 +09:00
2019-08-25 17:49:45 +00:00
2019-08-22 07:47:30 +02:00
2019-08-22 07:47:30 +02:00
2019-08-22 07:47:30 +02:00
2019-08-21 07:43:42 +02:00
2019-08-21 07:43:42 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-28 07:23:23 +02:00
2019-08-22 07:21:29 +02:00
2019-08-22 07:21:29 +02:00
2019-08-22 07:21:29 +02:00
2019-08-23 05:42:45 +00:00
2019-09-03 17:37:38 +02:00
2019-09-03 17:37:38 +02:00
2019-09-09 16:14:32 +07:00
2019-09-09 16:14:32 +07:00
2019-09-09 16:14:32 +07:00
2019-08-24 22:09:02 +02:00
2019-08-24 22:09:02 +02:00
2019-08-24 22:09:02 +02:00
2019-08-28 21:17:12 +02:00
2019-08-28 21:17:12 +02:00