rust/compiler
Krasimir Georgiev c1c20138a9 rustc_mir_build: reorder bindings
No functional changes intended.

I'm playing around with building compiler components using nightly rust
(2021-11-02) in a non-standard way. I encountered the following error while
trying to build rustc_mir_build:

```
error[E0597]: `wildcard` does not live long enough
    --> rust/src/nightly/compiler/rustc_mir_build/src/build/matches/mod.rs:1767:82
     |
1767 |         let mut otherwise_candidate = Candidate::new(expr_place_builder.clone(), &wildcard, false);
     |                                                                                  ^^^^^^^^^ borrowed value does not live long enough
...
1799 |     }
     |     -
     |     |
     |     `wildcard` dropped here while still borrowed
     |     borrow might be used here, when `guard_candidate` is dropped and runs the destructor for type `Candidate<'_, '_>`
     |
     = note: values in a scope are dropped in the opposite order they are defined
```

I believe this flags an issue that may become an error in the future.
Swapping the order of `wildcard` and `guard_candidate` resolves it.
2021-11-15 16:23:02 +01:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rollup merge of #90657 - GuillaumeGomez:one-char-last-line-removed, r=jyn514 2021-11-08 15:15:24 +01:00
rustc_ast_lowering ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
rustc_ast_passes Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_ast_pretty Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_attr
rustc_borrowck Rollup merge of #89561 - nbdd0121:const_typeck, r=nikomatsakis 2021-11-09 19:00:40 +01:00
rustc_builtin_macros Auto merge of #90485 - camsteffen:fmt-args-less-bind, r=m-ou-se 2021-11-09 05:33:16 +00:00
rustc_codegen_cranelift
rustc_codegen_gcc Auto merge of #89652 - rcvalle:rust-cfi, r=nagisa 2021-10-27 09:19:42 +00:00
rustc_codegen_llvm Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_codegen_ssa Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_const_eval Auto merge of #88670 - camelid:miri-uninit-num, r=RalfJung 2021-11-10 09:36:03 +00:00
rustc_data_structures more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_driver Don't proceed to codegen if there are lint errors 2021-11-08 01:22:28 +00:00
rustc_error_codes Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
rustc_errors Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
rustc_expand Don't abort compilation after giving a lint error 2021-11-08 01:22:28 +00:00
rustc_feature Add features gates for experimental asm features 2021-11-07 01:23:53 +00:00
rustc_fs_util
rustc_graphviz
rustc_hir Give inline const separate DefKind 2021-11-07 03:59:06 +00:00
rustc_hir_pretty
rustc_incremental Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_index
rustc_infer Rollup merge of #89561 - nbdd0121:const_typeck, r=nikomatsakis 2021-11-09 19:00:40 +01:00
rustc_interface Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_lexer use matches!() macro in more places 2021-11-06 16:13:14 +01:00
rustc_lint Auto merge of #90668 - matthiaskrgr:clippy_nov7, r=jyn514 2021-11-07 20:04:54 +00:00
rustc_lint_defs Properly register text_direction_codepoint_in_comment lint. 2021-11-05 20:12:40 +01:00
rustc_llvm Initialize LLVM time trace profiler on each code generation thread 2021-11-05 17:47:11 +01:00
rustc_macros more clippy fixes 2021-11-07 16:59:05 +01:00
rustc_metadata Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_middle Rollup merge of #90035 - SparrowLii:rfc2528, r=jackh726 2021-11-09 19:00:41 +01:00
rustc_mir_build rustc_mir_build: reorder bindings 2021-11-15 16:23:02 +01:00
rustc_mir_dataflow Remove MaybeMutBorrowedLocals 2021-11-03 16:43:12 +01:00
rustc_mir_transform impl Copy/Clone for arrays in std, not in compiler 2021-11-08 13:11:58 -05:00
rustc_monomorphize Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_parse ast: Fix naming conventions in AST structures 2021-11-07 21:38:17 +08:00
rustc_parse_format
rustc_passes Rollup merge of #89561 - nbdd0121:const_typeck, r=nikomatsakis 2021-11-09 19:00:40 +01:00
rustc_plugin_impl
rustc_privacy Give inline const separate DefKind 2021-11-07 03:59:06 +00:00
rustc_query_impl Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_query_system Auto merge of #90361 - Mark-Simulacrum:always-verify, r=michaelwoerister 2021-11-08 13:38:08 +00:00
rustc_resolve Rollup merge of #89561 - nbdd0121:const_typeck, r=nikomatsakis 2021-11-09 19:00:40 +01:00
rustc_save_analysis Give inline const separate DefKind 2021-11-07 03:59:06 +00:00
rustc_serialize
rustc_session Auto merge of #87337 - jyn514:lint-error, r=oli-obk,flip1995 2021-11-09 08:21:10 +00:00
rustc_span Auto merge of #90485 - camsteffen:fmt-args-less-bind, r=m-ou-se 2021-11-09 05:33:16 +00:00
rustc_symbol_mangling Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_target Rollup merge of #90494 - Meziu:armv6k-3ds-target, r=sanxiyn 2021-11-08 15:15:22 +01:00
rustc_trait_selection Auto merge of #90734 - matthiaskrgr:rollup-e1euotp, r=matthiaskrgr 2021-11-09 20:09:53 +00:00
rustc_traits Make select_* methods return Vec for TraitEngine 2021-11-08 23:35:23 +08:00
rustc_ty_utils impl Copy/Clone for arrays in std, not in compiler 2021-11-08 13:11:58 -05:00
rustc_type_ir
rustc_typeck Rollup merge of #90035 - SparrowLii:rfc2528, r=jackh726 2021-11-09 19:00:41 +01:00