diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-09 14:09:55 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-10 10:42:14 -0400 |
| commit | 04c049498d8c24b890bc22f8ee2d541d5e4ee2f6 (patch) | |
| tree | a71329330c1c1fa2628b54f6131df53f7c508364 /compiler/rustc_infer/src/traits/structural_impls.rs | |
| parent | cf774742b6029e0c2e00654975c001d192063b5b (diff) | |
| download | rust-04c049498d8c24b890bc22f8ee2d541d5e4ee2f6.tar.gz rust-04c049498d8c24b890bc22f8ee2d541d5e4ee2f6.zip | |
rename some variants in FulfillmentErrorCode
Diffstat (limited to 'compiler/rustc_infer/src/traits/structural_impls.rs')
| -rw-r--r-- | compiler/rustc_infer/src/traits/structural_impls.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_infer/src/traits/structural_impls.rs b/compiler/rustc_infer/src/traits/structural_impls.rs index 064e09b8750..b616d37e5b5 100644 --- a/compiler/rustc_infer/src/traits/structural_impls.rs +++ b/compiler/rustc_infer/src/traits/structural_impls.rs @@ -39,12 +39,12 @@ impl<'tcx> fmt::Debug for traits::FulfillmentErrorCode<'tcx> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { use traits::FulfillmentErrorCode::*; match *self { - SelectionError(ref e) => write!(f, "{e:?}"), - ProjectionError(ref e) => write!(f, "{e:?}"), - SubtypeError(ref a, ref b) => { + Select(ref e) => write!(f, "{e:?}"), + Project(ref e) => write!(f, "{e:?}"), + Subtype(ref a, ref b) => { write!(f, "CodeSubtypeError({a:?}, {b:?})") } - ConstEquateError(ref a, ref b) => { + ConstEquate(ref a, ref b) => { write!(f, "CodeConstEquateError({a:?}, {b:?})") } Ambiguity { overflow: None } => write!(f, "Ambiguity"), |
