Split out overflow handling into its own module

This commit is contained in:
Michael Goulet
2024-07-08 16:23:01 -04:00
parent a2d58197a7
commit 7af825fea4
10 changed files with 208 additions and 187 deletions

View File

@@ -1,7 +1,7 @@
use std::fmt::Debug;
use std::marker::PhantomData;
use crate::error_reporting::traits::{OverflowCause, TypeErrCtxtExt};
use crate::error_reporting::traits::{OverflowCause, TypeErrCtxtOverflowExt};
use crate::traits::query::evaluate_obligation::InferCtxtExt;
use crate::traits::{BoundVarReplacer, PlaceholderReplacer, ScrubbedTraitError};
use rustc_data_structures::stack::ensure_sufficient_stack;