rust/compiler/rustc_hir_analysis/src
Matthias Krüger 47a491d9f0
Rollup merge of #121819 - nnethercote:fix-121812, r=oli-obk
Handle stashing of delayed bugs

By just emitting them immediately, because it does happen in practice, when errors are downgraded to delayed bugs.

We already had one case in `lint.rs` where we handled this at the callsite. This commit changes things so it's handled within `stash_diagnostic` instead, because #121812 identified a second case, and it's possible there are more.

Fixes #121812.

r? ````@oli-obk````
2024-03-01 17:51:31 +01:00
..
astconv Handle stashing of delayed bugs. 2024-03-01 10:18:54 +11:00
check Auto merge of #118247 - spastorino:type-equality-subtyping, r=lcnr 2024-02-29 19:18:41 +00:00
coherence Auto merge of #120393 - Urgau:rfc3373-non-local-defs, r=WaffleLapkin 2024-02-25 19:11:06 +00:00
collect Overhaul how stashed diagnostics work, again. 2024-02-29 11:08:27 +11: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 Auto merge of #120931 - chenyukang:yukang-cleanup-hashmap, r=michaelwoerister 2024-02-15 12:36:37 +00:00
structured_errors Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00
variance Dejargnonize subst 2024-02-12 15:46:35 +09:00
autoderef.rs fix ICE for deref coercions with type errors 2024-02-12 14:37:35 +01:00
bounds.rs ~const trait or projection bounds do not imply non-const bounds 2024-01-08 15:01:14 +00: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 Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00
constrained_generic_params.rs Use expand_weak_alias_tys when collecting constrained generics params in impls 2024-02-20 17:31:59 +01:00
errors.rs Remove unused diagnostic struct 2024-02-29 14:14:21 +08:00
hir_wf_check.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
impl_wf_check.rs Use expand_weak_alias_tys when collecting constrained generics params in impls 2024-02-20 17:31:59 +01:00
lib.rs Always evaluate free constants and statics, even if previous errors occurred 2024-02-19 22:11:13 +00:00
structured_errors.rs Rename DiagnosticBuilder as Diag. 2024-02-28 08:55:35 +11:00