diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-03 01:09:08 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-03 01:09:08 +0000 |
| commit | b2317a642d36e26e6cdf0624c38d461384f7b94e (patch) | |
| tree | 009308fd6fe21614aec211722a146580ec7dce3c | |
| parent | 23b1cc197a3a6d0c1ab78a5c6e7cdad17681f1c9 (diff) | |
| download | rust-b2317a642d36e26e6cdf0624c38d461384f7b94e.tar.gz rust-b2317a642d36e26e6cdf0624c38d461384f7b94e.zip | |
has_overflow only if value is *not* within limit
| -rw-r--r-- | compiler/rustc_trait_selection/src/solve/overflow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/solve/overflow.rs b/compiler/rustc_trait_selection/src/solve/overflow.rs index 8d73a83aec9..fdd6adb681b 100644 --- a/compiler/rustc_trait_selection/src/solve/overflow.rs +++ b/compiler/rustc_trait_selection/src/solve/overflow.rs @@ -36,7 +36,7 @@ impl OverflowData { #[inline] pub(super) fn has_overflow(&self, depth: usize) -> bool { - self.current_limit.value_within_limit(depth + self.additional_depth) + !self.current_limit.value_within_limit(depth + self.additional_depth) } /// Updating the current limit when hitting overflow. |
