about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-27 15:29:00 +0000
committerbors <bors@rust-lang.org>2024-03-27 15:29:00 +0000
commitd5db7fb537c0352eec3855aa0331c271c48ac4f6 (patch)
tree630813ef50493ce6307b5e7d570e52370a09dd06 /compiler/rustc_parse/src/parser/expr.rs
parent10a7aa14fed9b528b74b0f098c4899c37c09a9c7 (diff)
parent864e1fbc81cdae128cd936cbeed179c99ab71025 (diff)
downloadrust-d5db7fb537c0352eec3855aa0331c271c48ac4f6.tar.gz
rust-d5db7fb537c0352eec3855aa0331c271c48ac4f6.zip
Auto merge of #123006 - compiler-errors:defer-suggestion-work, r=fee1-dead
Stop doing expensive work in `opt_suggest_box_span` eagerly

This PR defers the `can_coerce` and `predicate_must_hold_modulo_regions` calls in `opt_suggest_box_span`, and instead defers it until error reporting. This requires pulling the logic out of `note_obligation_cause_code` and into coercion, where we have access to the trait solver.

This also allows us to remove `TypeVariableOriginKind::OpaqueTypeInference`.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions