diff options
| author | Michael Goulet <michael@errs.io> | 2022-12-06 00:19:42 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-12-06 00:19:55 +0000 | 
| commit | d2a80c157145d0c1e6fd6669862358de6cd89185 (patch) | |
| tree | d0d3735ccf14b3801d280362745d7d5aec820a57 /compiler/rustc_trait_selection/src/traits/codegen.rs | |
| parent | e940f845be13ff37d4ba28df5f40d74e5b0895a0 (diff) | |
| download | rust-d2a80c157145d0c1e6fd6669862358de6cd89185.tar.gz rust-d2a80c157145d0c1e6fd6669862358de6cd89185.zip | |
Avoid noting cause code (which is usually misc, b/c codegen) for opaque type reveal overflow
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/codegen.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/codegen.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_trait_selection/src/traits/codegen.rs b/compiler/rustc_trait_selection/src/traits/codegen.rs index 61743d78e9e..0102d268b42 100644 --- a/compiler/rustc_trait_selection/src/traits/codegen.rs +++ b/compiler/rustc_trait_selection/src/traits/codegen.rs @@ -70,7 +70,7 @@ pub fn codegen_select_candidate<'tcx>( // `rustc_ty_utils::resolve_associated_item` doesn't return `None` post-monomorphization. for err in errors { if let FulfillmentErrorCode::CodeCycle(cycle) = err.code { - infcx.err_ctxt().report_overflow_error_cycle(&cycle); + infcx.err_ctxt().report_overflow_obligation_cycle(&cycle); } } return Err(CodegenObligationError::FulfillmentError); | 
