rust/compiler
bors d03fe84169 Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper
Reintroduce hir::ExprKind::If

Basically copied and paste #59288/https://github.com/rust-lang/rust-clippy/pull/4080 with some modifications.

The vast majority of tests were fixed and now there are only a few remaining. Since I am still unable to figure out the missing pieces, any help with the following list is welcome.

- [ ] **Unnecessary `typeck` exception**: [Cheated on this one to make CI green.](https://github.com/rust-lang/rust/pull/79328/files#diff-3faee9ba23fc54a12b7c43364ba81f8c5660045c7e1d7989a02a0cee1c5b2051)
- [x] **Incorrect span**: [Span should reference `then` and `else` separately.](https://github.com/rust-lang/rust/pull/79328/files#diff-cf2c46e82222ee4b1037a68fff8a1af3c4f1de7a6b3fd798aacbf3c0475abe3d)
- [x] **New note regarding `assert!`**: [Modified but not "wrong". Maybe can be a good thing?](https://github.com/rust-lang/rust/pull/79328/files#diff-9e0d7c89ed0224e2b62060c957177c27db43c30dfe3c2974cb6b5091cda9cfb5)
- [x] **Inverted report location**: [Modified but not "wrong". Locations were inverted.](https://github.com/rust-lang/rust/pull/79328/files#diff-f637ce7c1f68d523a165aa9651765df05e36c4d7d279194b1a6b28b48a323691)
- [x] **`src/test/ui/point-to-type-err-cause-on-impl-trait-return.rs` has weird errors**: [Not sure why this is happening.](https://github.com/rust-lang/rust/pull/79328/files#diff-c823c09660f5b112f95e97e8ff71f1797b6c7f37dbb3d16f8e98bbaea8072e95)
- [x] **Missing diagnostic**: [???](https://github.com/rust-lang/rust/pull/79328/files#diff-6b8ab09360d725ba4513933827f9796b42ff9522b0690f80b76de067143af2fc)
2021-01-14 14:41:58 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_builtin_macros
rustc_codegen_cranelift
rustc_codegen_llvm
rustc_codegen_ssa
rustc_data_structures
rustc_driver Rollup merge of #80859 - jsgf:fix-pretty-remap, r=davidtwco 2021-01-13 03:20:21 +01:00
rustc_error_codes Update code to account for extern ABI requirement 2021-01-13 07:49:45 -05:00
rustc_errors
rustc_expand
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_hir_pretty Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_incremental
rustc_index
rustc_infer Auto merge of #80960 - Dylan-DPC:rollup-89tri8x, r=Dylan-DPC 2021-01-13 04:29:45 +00:00
rustc_interface
rustc_lexer
rustc_lint Introduce missing ABI lint on extern blocks 2021-01-13 07:49:16 -05:00
rustc_lint_defs Introduce missing ABI lint on extern blocks 2021-01-13 07:49:16 -05:00
rustc_llvm Update tests for extern block linting 2021-01-13 07:49:16 -05:00
rustc_macros
rustc_metadata Encode optimized MIR of generators when emitting metadata 2021-01-14 00:00:00 +00:00
rustc_middle Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_mir Auto merge of #79322 - jyn514:refactor-impl, r=estebank 2021-01-13 01:40:41 +00:00
rustc_mir_build Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_parse Auto merge of #77524 - Patryk27:fixes/66228, r=estebank 2021-01-13 20:35:58 +00:00
rustc_parse_format
rustc_passes Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_plugin_impl
rustc_privacy Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
rustc_query_system
rustc_resolve Auto merge of #77524 - Patryk27:fixes/66228, r=estebank 2021-01-13 20:35:58 +00:00
rustc_save_analysis Separate out a hir::Impl struct 2021-01-12 20:32:33 -05:00
rustc_serialize
rustc_session
rustc_span Auto merge of #80654 - Aaron1011:fix/dummy-span-ctxt, r=wesleywiser 2021-01-13 23:24:31 +00:00
rustc_symbol_mangling
rustc_target Rollup merge of #80662 - rxrbln:master, r=estebank 2021-01-13 03:20:15 +01:00
rustc_trait_selection Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00
rustc_traits
rustc_ty_utils Auto merge of #77524 - Patryk27:fixes/66228, r=estebank 2021-01-13 20:35:58 +00:00
rustc_type_ir
rustc_typeck Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper 2021-01-14 14:41:58 +00:00