diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-12 16:16:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-01-12 16:34:39 +0000 |
| commit | f37a919e9668dbbdc999bb727eafc2bd46e505a6 (patch) | |
| tree | 18be3f8cf04ffa96c86b2ab41a52c61b27e09ef9 /compiler/rustc_traits/src/codegen.rs | |
| parent | 174e73a3f6df6f96ab453493796e461164dea94a (diff) | |
| download | rust-f37a919e9668dbbdc999bb727eafc2bd46e505a6.tar.gz rust-f37a919e9668dbbdc999bb727eafc2bd46e505a6.zip | |
Remove redundant Code from FulfillmentErrorCode variants
Diffstat (limited to 'compiler/rustc_traits/src/codegen.rs')
| -rw-r--r-- | compiler/rustc_traits/src/codegen.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_traits/src/codegen.rs b/compiler/rustc_traits/src/codegen.rs index 2cd1c3b502a..f3fae63ecc7 100644 --- a/compiler/rustc_traits/src/codegen.rs +++ b/compiler/rustc_traits/src/codegen.rs @@ -63,7 +63,7 @@ pub fn codegen_select_candidate<'tcx>( // Cycle errors are the only post-monomorphization errors possible; emit them now so // `rustc_ty_utils::resolve_associated_item` doesn't return `None` post-monomorphization. for err in errors { - if let FulfillmentErrorCode::CodeCycle(cycle) = err.code { + if let FulfillmentErrorCode::Cycle(cycle) = err.code { infcx.err_ctxt().report_overflow_obligation_cycle(&cycle); } } |
