rust/compiler
Matthias Krüger db4b3dd608
Rollup merge of #108667 - compiler-errors:issue-108664, r=estebank
Fix another ICE in `point_at_expr_source_of_inferred_type`

Types coming from method probes must only be investigated *structurally*, since they often contain escaping infer variables from generalization and autoderef. We already have a hack in this PR that erases variables from types, so just use that.

Fixes #108664

The note attached to this error is pretty bad:

```
here the type of `primes` is inferred to be `[_]`
```

But that's unrelated to the PR.

---

Side-note: This is a pretty easy to trigger beta regression, so I've nominated it. Alternatively, I'm slightly inclined to remove this code altogether until it can be reformulated to be more accurate and less ICEy.
2023-03-03 20:06:28 +01:00
..
rustc Add a new rustc_driver dylib to rexport rustc_driver_impl 2023-02-02 07:34:41 +01:00
rustc_abi Unify validity checks into a single query 2023-02-23 18:42:36 +00:00
rustc_apfloat compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_arena compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
rustc_ast Use ThinVec in a few more AST types. 2023-02-21 11:51:56 +11:00
rustc_ast_lowering Rollup merge of #108516 - clubby789:rustc-box-restrict, r=compiler-errors 2023-03-02 07:24:00 +01:00
rustc_ast_passes avoid &str to String conversions 2023-02-27 14:27:13 +09:00
rustc_ast_pretty Use ThinVec in various AST types. 2023-02-21 11:51:56 +11:00
rustc_attr errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_baked_icu_data update ICU4X to 1.1.0 2023-02-04 22:28:59 +01:00
rustc_borrowck Auto merge of #108487 - cjgillot:no-typeck-mir, r=oli-obk 2023-02-27 21:48:10 +00:00
rustc_builtin_macros Explain compile-time vs run-time difference in env!() error message 2023-02-28 16:44:59 +00:00
rustc_codegen_cranelift Unify all validity check intrinsics 2023-02-27 13:30:44 +00:00
rustc_codegen_gcc Use List::empty() instead of mk_substs(&[]). 2023-02-24 07:33:02 +11:00
rustc_codegen_llvm Rollup merge of #108599 - nikic:drop-init, r=cuviper 2023-03-03 20:06:27 +01:00
rustc_codegen_ssa Revert "Stabilize #![feature(target_feature_11)]" 2023-03-02 13:41:17 +01:00
rustc_const_eval Rollup merge of #108022 - CraftSpider:align-bytes, r=oli-obk 2023-03-02 23:05:27 +01:00
rustc_data_structures Add contains_key to SortedIndexMultiMap 2023-02-28 17:15:00 +01:00
rustc_driver Remove unneeded extern crate 2023-02-02 07:47:39 +01:00
rustc_driver_impl refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
rustc_error_codes refactor: statically guarantee that current error codes are documented 2023-02-26 20:12:36 +13:00
rustc_error_messages Handle selecting the default locale better 2023-02-23 01:14:10 +01:00
rustc_errors Rollup merge of #108482 - Ezrashaw:force-error-docs, r=GuillaumeGomez 2023-02-26 12:05:00 +01:00
rustc_expand Rollup merge of #108297 - chenyukang:yukang/delim-error-exit, r=petrochenkov 2023-03-01 01:20:22 +01:00
rustc_feature Revert "Stabilize #![feature(target_feature_11)]" 2023-03-02 13:41:17 +01:00
rustc_fs_util Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
rustc_graphviz Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
rustc_hir Only look for param in generics if it actually comes from generics 2023-02-28 06:27:56 +00:00
rustc_hir_analysis Rollup merge of #108553 - compiler-errors:non-lt-late-bound-in-anon-ct, r=petrochenkov 2023-03-03 20:06:27 +01:00
rustc_hir_pretty Add ErrorGuaranteed to HIR ExprKind::Err 2023-02-25 19:46:36 +00:00
rustc_hir_typeck Rollup merge of #108667 - compiler-errors:issue-108664, r=estebank 2023-03-03 20:06:28 +01:00
rustc_incremental errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_index Fix IndexVec::drain_enumerated 2023-01-19 15:25:33 +00:00
rustc_infer canonicalization 2023-03-03 12:45:03 +01:00
rustc_interface Rollup merge of #107675 - jsgf:link-directives, r=davidtwco 2023-02-25 11:53:09 -08:00
rustc_lexer Update lexer lifetime test 2023-02-14 23:25:01 +08:00
rustc_lint Rollup merge of #108363 - cjgillot:unused-crate, r=WaffleLapkin 2023-02-27 18:48:49 +01:00
rustc_lint_defs Rollup merge of #108363 - cjgillot:unused-crate, r=WaffleLapkin 2023-02-27 18:48:49 +01:00
rustc_llvm Rollup merge of #108599 - nikic:drop-init, r=cuviper 2023-03-03 20:06:27 +01:00
rustc_log Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errors 2023-02-11 17:18:44 +01:00
rustc_macros Emit the enum discriminant separately for the Encodable macro 2023-02-25 01:04:56 +01:00
rustc_metadata Properly implement should_encode_fn_impl_trait_in_trait using new unstable option 2023-03-01 14:13:41 -03:00
rustc_middle Rollup merge of #107981 - lcnr:canonicalization-uwu, r=compiler-errors 2023-03-03 20:06:26 +01:00
rustc_mir_build Rollup merge of #108516 - clubby789:rustc-box-restrict, r=compiler-errors 2023-03-02 07:24:00 +01:00
rustc_mir_dataflow Auto merge of #108250 - nnethercote:rename-interner-funcs, r=compiler-errors 2023-02-25 13:55:26 +00:00
rustc_mir_transform Unify all validity check intrinsics 2023-02-27 13:30:44 +00:00
rustc_monomorphize Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_parse recover from for-else and while-else 2023-03-01 13:26:59 +01:00
rustc_parse_format Replace some thens with some then_somes 2023-02-16 15:26:03 +00:00
rustc_passes Rollup merge of #108486 - cjgillot:owner-ditem, r=Nilstrieb 2023-02-27 06:11:53 +01:00
rustc_plugin_impl errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
rustc_privacy Auto merge of #108324 - notriddle:notriddle/assoc-fn-method, r=compiler-errors,davidtwco,estebank,oli-obk 2023-02-23 00:19:12 +00:00
rustc_query_impl Move ensure_sufficient_stack to try_execute_query callers 2023-02-25 06:11:01 +01:00
rustc_query_system Fix a race in the query system 2023-02-28 07:47:58 +01:00
rustc_resolve Auto merge of #108098 - notriddle:notriddle/rustdoc-tooltip-alloc, r=GuillaumeGomez 2023-02-28 07:27:32 +00:00
rustc_serialize Emit the enum discriminant separately for the Encodable macro 2023-02-25 01:04:56 +01:00
rustc_session Add unstable option new_rpitit to be used for new RPITIT lowering system 2023-03-01 12:56:39 -03:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Rollup merge of #108484 - Nilstrieb:˂DiagnosticItem˂FromFn˃ as From˂˂LangItemFromFn˃˃˃꞉꞉from, r=cjgillot 2023-02-26 12:05:01 +01:00
rustc_symbol_mangling Rename many interner functions. 2023-02-24 07:32:24 +11:00
rustc_target Auto merge of #106476 - keith:ks/add-sanitizer-support-for-modern-ios-platforms, r=badboy 2023-02-18 05:58:41 +00:00
rustc_trait_selection canonicalization 2023-03-03 12:45:03 +01:00
rustc_traits Add mk_canonical_var_infos_from_iter. 2023-02-24 07:33:02 +11:00
rustc_transmute Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
rustc_ty_utils Feed queries on impl side for RPITITs when using lower_impl_trait_in_trait_to_assoc_ty 2023-03-02 16:48:49 -03:00
rustc_type_ir make first component of dyn* use pointer layout+type, and adjust DynStar comment 2023-02-18 19:24:55 +00:00