rust/compiler/rustc_hir_analysis/src
Matthias Krüger 90af17ddcb
Rollup merge of #123997 - compiler-errors:self-res, r=fmease
Delay span bug when `Self` kw resolves to `DefKind::{Mod,Trait}`

Catch the case where `kw::Self` is recovered in the parser and causes us to subsequently resolve `&self`'s implicit type to something that's not a type.

This check could be made more accurate, though I'm not sure how hard we have to try here.

Fixes #123988
2024-04-17 05:44:53 +02:00
..
check Auto merge of #123468 - compiler-errors:precise-capturing, r=oli-obk 2024-04-16 11:22:35 +00:00
coherence Prefer identity equality over equating types during coercion. 2024-04-16 16:00:55 +00:00
collect Rollup merge of #122813 - nnethercote:nicer-quals, r=compiler-errors 2024-04-17 05:44:52 +02:00
errors Use a path instead of an ident (and stop manually resolving) 2024-04-15 16:45:26 -04:00
hir_ty_lowering Rollup merge of #123997 - compiler-errors:self-res, r=fmease 2024-04-17 05:44:53 +02:00
impl_wf_check Use expand_weak_alias_tys when collecting constrained generics params in impls 2024-02-20 17:31:59 +01:00
outlives Use FxIndexMap instead of BTreeMap to avoid sorting DefIds 2024-03-27 14:02:15 +00:00
structured_errors Suggest _ for missing generic arguments in turbofish 2024-03-17 17:34:17 +00:00
variance Don't leak unnameable types in -> _ recover 2024-04-14 11:43:05 -04:00
autoderef.rs fix ICE for deref coercions with type errors 2024-02-12 14:37:35 +01:00
bounds.rs Make sure to insert Sized bound first into clauses list 2024-04-01 21:41:45 -04:00
check_unused.rs Rename TyCtxt::struct_span_lint_hir as TyCtxt::node_span_lint. 2024-01-23 08:09:01 +11:00
collect.rs Don't leak unnameable types in -> _ recover 2024-04-14 11:43:05 -04:00
constrained_generic_params.rs Convert TypeVisitor and DefIdVisitor to use VisitorResult 2024-03-05 13:28:15 -05:00
errors.rs Validation and other things 2024-04-15 16:45:01 -04:00
hir_wf_check.rs Auto merge of #122869 - matthiaskrgr:rollup-0navj4l, r=matthiaskrgr 2024-03-22 12:29:42 +00:00
impl_wf_check.rs Merge check_mod_impl_wf and check_mod_type_wf 2024-03-07 06:27:09 +00:00
lib.rs remove some ancient debug output, looks unused? 2024-04-13 11:30:48 +03:00
structured_errors.rs Rename StructuredDiagnostic as StructuredDiag. 2024-03-05 12:15:12 +11:00