about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/wf.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-09 21:18:48 -0400
committerMichael Goulet <michael@errs.io>2024-05-10 10:42:57 -0400
commit6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c (patch)
tree4ed62ab743c67875b1e4adcdff26e05766faa926 /compiler/rustc_trait_selection/src/traits/wf.rs
parent9108294a6c37c36ce561eade9d1c321a5d75bddd (diff)
downloadrust-6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c.tar.gz
rust-6f77bfe8b63b2e1bba71a0eb4973ccd17fe8885c.zip
Name tweaks
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/wf.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/wf.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/wf.rs b/compiler/rustc_trait_selection/src/traits/wf.rs
index d4eb3af3b64..ebcda61f2ad 100644
--- a/compiler/rustc_trait_selection/src/traits/wf.rs
+++ b/compiler/rustc_trait_selection/src/traits/wf.rs
@@ -566,9 +566,9 @@ impl<'a, 'tcx> WfPredicates<'a, 'tcx> {
         iter::zip(predicates, origins.into_iter().rev())
             .map(|((pred, span), origin_def_id)| {
                 let code = if span.is_dummy() {
-                    ObligationCauseCode::MiscItem(origin_def_id)
+                    ObligationCauseCode::WhereClause(origin_def_id)
                 } else {
-                    ObligationCauseCode::SpannedItem(origin_def_id, span)
+                    ObligationCauseCode::SpannedWhereClause(origin_def_id, span)
                 };
                 let cause = self.cause(code);
                 traits::Obligation::with_depth(