rust/compiler
Yuki Okushi cdc12ba5a3
Rollup merge of #90925 - krasimirgg:rustc_mir_build_fix, r=petrochenkov
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-16 15:59:42 +09:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #89316 - asquared31415:multiple-clobber-abi, r=Amanieu 2021-11-12 16:29:25 +00:00
rustc_ast_lowering Add support for specifying multiple clobber_abi in asm! 2021-11-10 01:06:03 -05:00
rustc_ast_passes rustc_feature: Convert BuiltinAttribute from tuple to a struct 2021-11-12 20:15:14 +08:00
rustc_ast_pretty Add support for specifying multiple clobber_abi in asm! 2021-11-10 01:06:03 -05:00
rustc_attr
rustc_borrowck Rollup merge of #90801 - b-naber:missing_normalization_equate_inputs_output, r=jackh726 2021-11-16 15:59:39 +09:00
rustc_builtin_macros Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm Rollup merge of #88868 - calebzulawski:feature/simd_bitmask, r=workingjubilee 2021-11-10 18:52:27 +01:00
rustc_codegen_ssa Rollup merge of #90058 - joshtriplett:stabilize-strip, r=wesleywiser 2021-11-16 09:14:16 +09:00
rustc_const_eval Rollup merge of #90892 - RalfJung:miri-partial-ptr-copy, r=oli-obk 2021-11-16 09:14:22 +09:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_errors Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_expand Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_feature Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir refactor is_param_bound 2021-11-15 22:31:56 -06:00
rustc_hir_pretty
rustc_incremental
rustc_index Generate documentation in rustc rustc_index::newtype_index macro 2021-11-13 18:50:29 -06:00
rustc_infer Use associated_item_def_ids more 2021-11-11 23:15:57 +00:00
rustc_interface Stabilize -Z strip as -C strip 2021-11-15 10:21:02 +01:00
rustc_lexer
rustc_lint Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_lint_defs
rustc_llvm PassWrapper: additional sanitizer update to match clang 2021-11-11 09:05:21 -05:00
rustc_macros
rustc_metadata Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00
rustc_middle Rollup merge of #90910 - RalfJung:const-discriminant-empty-enum, r=petrochenkov 2021-11-16 15:59:41 +09:00
rustc_mir_build Rollup merge of #90925 - krasimirgg:rustc_mir_build_fix, r=petrochenkov 2021-11-16 15:59:42 +09:00
rustc_mir_dataflow Use associated_item_def_ids more 2021-11-11 23:15:57 +00:00
rustc_mir_transform
rustc_monomorphize Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_parse rustc_feature: Convert BuiltinAttribute from tuple to a struct 2021-11-12 20:15:14 +08:00
rustc_parse_format
rustc_passes Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_plugin_impl
rustc_privacy Add ty::Visibility::is_public() 2021-11-09 18:35:00 -08:00
rustc_query_impl
rustc_query_system
rustc_resolve Stabilize format_args_capture 2021-11-15 10:14:29 +01:00
rustc_save_analysis
rustc_serialize
rustc_session Stabilize -Z strip as -C strip 2021-11-15 10:21:02 +01:00
rustc_span
rustc_symbol_mangling
rustc_target Android is not GNU 2021-11-12 09:09:08 -08:00
rustc_trait_selection Rollup merge of #90819 - JakobDegen:issue-90804, r=petrochenkov 2021-11-16 15:59:40 +09:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Rollup merge of #90803 - TaKO8Ki:suggest-chars-on-attempt-to-iter, r=estebank 2021-11-16 15:59:39 +09:00