diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-09 21:18:48 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-10 10:42:57 -0400 |
| commit | 6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c (patch) | |
| tree | 4ed62ab743c67875b1e4adcdff26e05766faa926 /compiler/rustc_const_eval/src | |
| parent | 9108294a6c37c36ce561eade9d1c321a5d75bddd (diff) | |
| download | rust-6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c.tar.gz rust-6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c.zip | |
Name tweaks
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/check.rs | 2 |
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 adbeacecc0c..d43dc467c0f 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::MiscItem(callee), + ObligationCauseCode::WhereClause(callee), ); let normalized_predicates = ocx.normalize(&cause, param_env, predicates); ocx.register_obligations(traits::predicates_for_generics( |
