about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-09 20:12:47 -0400
committerMichael Goulet <michael@errs.io>2024-05-10 10:42:57 -0400
commit534e267d488a698ee8839452377e1d3201eede65 (patch)
tree445848056ae1b763e2718501cdec30a5aa5a0719 /compiler/rustc_const_eval/src
parent4bde8a8f4b039c44baae49dea2f728a28d152122 (diff)
downloadrust-534e267d488a698ee8839452377e1d3201eede65.tar.gz
rust-534e267d488a698ee8839452377e1d3201eede65.zip
Rename some ObligationCauseCode variants
Diffstat (limited to 'compiler/rustc_const_eval/src')
-rw-r--r--compiler/rustc_const_eval/src/transform/check_consts/check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/check.rs b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
index f9786acfc6c..adbeacecc0c 100644
--- a/compiler/rustc_const_eval/src/transform/check_consts/check.rs
+++ b/compiler/rustc_const_eval/src/transform/check_consts/check.rs
@@ -738,7 +738,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'_, 'tcx> {
                 let cause = ObligationCause::new(
                     terminator.source_info.span,
                     self.body.source.def_id().expect_local(),
-                    ObligationCauseCode::ItemObligation(callee),
+                    ObligationCauseCode::MiscItem(callee),
                 );
                 let normalized_predicates = ocx.normalize(&cause, param_env, predicates);
                 ocx.register_obligations(traits::predicates_for_generics(