diff options
| author | lcnr <rust@lcnr.de> | 2024-09-12 14:32:44 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2024-09-12 14:32:44 +0200 |
| commit | 675c99f4d54693af8c7af162968838d6e75ffbee (patch) | |
| tree | 70091959ac6eba1c47f40f88242106ea7ec72905 /compiler/rustc_trait_selection | |
| parent | 7c7372b6a1b9a8d6b787a3e5a10e4f8325b1fdfc (diff) | |
| download | rust-675c99f4d54693af8c7af162968838d6e75ffbee.tar.gz rust-675c99f4d54693af8c7af162968838d6e75ffbee.zip | |
more eagerly discard constraints on overflow
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/fulfill.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/fulfill.rs b/compiler/rustc_trait_selection/src/solve/fulfill.rs index f5f36f40f7e..cfc73e2e47e 100644 --- a/compiler/rustc_trait_selection/src/solve/fulfill.rs +++ b/compiler/rustc_trait_selection/src/solve/fulfill.rs @@ -302,7 +302,7 @@ fn fulfillment_error_for_stalled<'tcx>( Ok((_, Certainty::Maybe(MaybeCause::Overflow { suggest_increasing_limit }))) => ( FulfillmentErrorCode::Ambiguity { overflow: Some(suggest_increasing_limit) }, // Don't look into overflows because we treat overflows weirdly anyways. - // In `instantiate_response_discarding_overflow` we set `has_changed = false`, + // We discard the inference constraints from overflowing goals, so // recomputing the goal again during `find_best_leaf_obligation` may apply // inference guidance that makes other goals go from ambig -> pass, for example. // |
