rust/compiler
Guillaume Gomez 41433795e7
Rollup merge of #87161 - sexxi-goose:fix-issue-87097, r=nikomatsakis
RFC2229: Use the correct place type

Closes https://github.com/rust-lang/rust/issues/87097

The ICE occurred because instead of looking at the type of the place after all the projections are applied, we instead looked at the `base_ty` of the Place to decide whether a discriminant should be read of not. This lead to two issues:

1. the kind of the type is not necessarily `Adt` since we only look at the `base_ty`, it could be instead `Ref` for example
2. if the kind of the type is `Adt` you could still be looking at the wrong variant to make a decision on whether the discriminant should be read or not

r? `@nikomatsakis`
2021-07-16 10:08:08 +02:00
..
rustc use jemallocator in rustc/rustdoc 2021-04-04 14:10:26 -07:00
rustc_apfloat Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_arena Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
rustc_ast Auto merge of #83918 - workingjubilee:stable-rangefrom-pat, r=joshtriplett 2021-07-11 06:31:42 +00:00
rustc_ast_lowering Cache expansion hash. 2021-07-13 23:10:56 +02:00
rustc_ast_passes Auto merge of #83918 - workingjubilee:stable-rangefrom-pat, r=joshtriplett 2021-07-11 06:31:42 +00:00
rustc_ast_pretty Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
rustc_attr Enhance well-formedness checks for #[repr(...)] attributes 2021-07-09 22:03:48 +02:00
rustc_builtin_macros expand: Support helper attributes for built-in derive macros 2021-07-13 21:59:22 +03:00
rustc_codegen_cranelift Use cranelift's Type::int instead of doing the match myself 2021-07-08 14:55:58 -07:00
rustc_codegen_llvm Auto merge of #86416 - Amanieu:asm_clobber_only, r=nagisa 2021-07-11 01:06:58 +00:00
rustc_codegen_ssa Auto merge of #87082 - michaelwoerister:const-in-debuginfo-type-names-fix, r=oli-obk,wesleywiser 2021-07-14 15:18:27 +00:00
rustc_data_structures rustc_data_structures: Drop unused dependency on crossbeam-utils 2021-06-25 01:03:16 -07:00
rustc_driver Auto merge of #80182 - in42:stack_trace, r=tmandry 2021-07-02 05:40:51 +00:00
rustc_error_codes Rollup merge of #86838 - lambinoo:I-69630-rust_const_unstable_check_const, r=oli-obk 2021-07-08 18:30:34 +02:00
rustc_errors Simplify future incompatible reporting. 2021-07-11 13:08:58 -07:00
rustc_expand Rollup merge of #87027 - petrochenkov:builderhelp, r=oli-obk 2021-07-14 19:53:35 +02:00
rustc_feature expand: Support helper attributes for built-in derive macros 2021-07-13 21:59:22 +03:00
rustc_fs_util
rustc_graphviz Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
rustc_hir Auto merge of #85941 - cjgillot:qresolve, r=Aaron1011 2021-07-11 16:09:17 +00:00
rustc_hir_pretty Rollup merge of #86358 - klensy:pp-loop, r=Mark-Simulacrum 2021-06-29 00:26:55 +09:00
rustc_incremental Revert "Revert "Merge CrateDisambiguator into StableCrateId"" 2021-07-06 11:28:04 +02:00
rustc_index Remove unused feature gates 2021-05-31 13:55:43 +02:00
rustc_infer remove unused Option 2021-07-04 11:09:32 -04:00
rustc_interface Rollup merge of #87145 - jsgf:fix-lint-opt-hash, r=michaelwoerister 2021-07-16 10:08:07 +02:00
rustc_lexer Rename 'bad prefix' to 'unknown prefix'. 2021-06-26 23:11:14 +08:00
rustc_lint Auto merge of #86827 - camsteffen:hash-lint-resolved, r=oli-obk 2021-07-13 15:06:10 +00:00
rustc_lint_defs Simplify future incompatible reporting. 2021-07-11 13:08:58 -07:00
rustc_llvm Upgrade cc crate to 1.0.69 2021-07-13 17:58:50 +09:00
rustc_macros Fix default_hash_types to use resolved path 2021-07-09 09:10:45 -05:00
rustc_metadata Auto merge of #86876 - jyn514:56935-target-crate-num, r=petrochenkov 2021-07-15 02:39:38 +00:00
rustc_middle Auto merge of #86993 - jackh726:project-gat-binders, r=nikomatsakis 2021-07-16 01:11:37 +00:00
rustc_mir Rollup merge of #86947 - m-ou-se:assert-matches-to-submodule, r=yaahc 2021-07-15 21:19:16 +09:00
rustc_mir_build Auto merge of #86665 - FabianWolff:layout-field-thir-unsafeck, r=oli-obk 2021-07-13 04:38:39 +00:00
rustc_parse Suggest a path separator if a stray colon is found in a match arm 2021-07-14 01:15:59 +02:00
rustc_parse_format Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
rustc_passes Auto merge of #86857 - fee1-dead:add-attr, r=oli-obk 2021-07-13 06:59:34 +00:00
rustc_plugin_impl Use () for plugin_registrar_fn. 2021-05-12 13:58:43 +02:00
rustc_privacy Make resolutions a query. 2021-07-06 19:22:27 +02:00
rustc_query_impl Correct comments about untracked accesses. 2021-07-06 19:26:02 +02:00
rustc_query_system Auto merge of #85154 - cjgillot:lessfn, r=bjorn3 2021-06-15 14:52:58 +00:00
rustc_resolve Rollup merge of #87134 - BoxyUwU:cgd-self-ty-error, r=lcnr 2021-07-15 21:19:20 +09:00
rustc_save_analysis rustc_span: Revert addition of proc_macro field to ExpnKind::Macro 2021-07-10 23:03:35 +03:00
rustc_serialize Emit warnings for unused fields in custom targets. 2021-06-17 21:48:02 +02:00
rustc_session Rollup merge of #87145 - jsgf:fix-lint-opt-hash, r=michaelwoerister 2021-07-16 10:08:07 +02:00
rustc_span Auto merge of #87106 - Mark-Simulacrum:edition-no-clone, r=petrochenkov 2021-07-14 01:41:12 +00:00
rustc_symbol_mangling Revert "Revert "Merge CrateDisambiguator into StableCrateId"" 2021-07-06 11:28:04 +02:00
rustc_target Auto merge of #86922 - joshtriplett:target-abi, r=oli-obk 2021-07-13 12:25:10 +00:00
rustc_trait_selection Remove failed and review comments 2021-07-15 10:58:49 -04:00
rustc_traits Combine individual limit queries into single limits query 2021-07-04 13:02:51 -05:00
rustc_ty_utils Add impl_constness query 2021-07-10 20:54:49 +08:00
rustc_type_ir Remove unused feature gates 2021-05-31 13:55:43 +02:00
rustc_typeck Rollup merge of #87161 - sexxi-goose:fix-issue-87097, r=nikomatsakis 2021-07-16 10:08:08 +02:00