Skip to content

Commit 0d7b7f1

Browse files
committed
Add more todos
1 parent c5b700a commit 0d7b7f1

File tree

9 files changed

+11
-1
lines changed

9 files changed

+11
-1
lines changed

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,8 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
752752
"unexpected non-`Self` predicate when computing \
753753
`{filter:?}` implied bounds: {clause:?}"
754754
);
755-
}
755+
},
756+
ty::ClauseKind::UnstableImpl => todo!()
756757
}
757758
}
758759
}
@@ -780,6 +781,7 @@ pub(super) fn assert_only_contains_predicates_from<'tcx>(
780781
`{filter:?}` implied bounds: {clause:?}"
781782
);
782783
}
784+
ty::ClauseKind::UnstableImpl => todo!()
783785
}
784786
}
785787
}

compiler/rustc_hir_analysis/src/impl_wf_check/min_specialization.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,5 +497,6 @@ fn trait_specialization_kind<'tcx>(
497497
| ty::ClauseKind::WellFormed(_)
498498
| ty::ClauseKind::ConstEvaluatable(..)
499499
| ty::ClauseKind::HostEffect(..) => None,
500+
ty::ClauseKind::UnstableImpl => todo!(),
500501
}
501502
}

compiler/rustc_hir_analysis/src/outlives/explicit.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl<'tcx> ExplicitPredicatesMap<'tcx> {
5454
| ty::ClauseKind::ConstArgHasType(_, _)
5555
| ty::ClauseKind::WellFormed(_)
5656
| ty::ClauseKind::ConstEvaluatable(_)
57+
| ty::ClauseKind::UnstableImpl
5758
| ty::ClauseKind::HostEffect(..) => {}
5859
}
5960
}

compiler/rustc_hir_typeck/src/fn_ctxt/inspect_obligations.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
5454
| ty::PredicateKind::ConstEquate(..)
5555
| ty::PredicateKind::Clause(ty::ClauseKind::HostEffect(..))
5656
| ty::PredicateKind::Ambiguous => false,
57+
ty::PredicateKind::Clause(ty::ClauseKind::UnstableImpl) => todo!(),
5758
}
5859
}
5960

compiler/rustc_hir_typeck/src/method/probe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
927927
| ty::ClauseKind::WellFormed(_)
928928
| ty::ClauseKind::ConstEvaluatable(_)
929929
| ty::ClauseKind::HostEffect(..) => None,
930+
ty::ClauseKind::UnstableImpl => todo!(),
930931
}
931932
});
932933

compiler/rustc_lint/src/builtin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
15721572
| ClauseKind::ConstEvaluatable(..)
15731573
// Users don't write this directly, only via another trait ref.
15741574
| ty::ClauseKind::HostEffect(..) => continue,
1575+
ty::ClauseKind::UnstableImpl => todo!(),
15751576
};
15761577
if predicate.is_global() {
15771578
cx.emit_span_lint(

compiler/rustc_privacy/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ where
158158
}
159159
ty::ClauseKind::ConstEvaluatable(ct) => ct.visit_with(self),
160160
ty::ClauseKind::WellFormed(arg) => arg.visit_with(self),
161+
ty::ClauseKind::UnstableImpl => todo!(), // TODO: maybe we need a visit with function here too?
161162
}
162163
}
163164

compiler/rustc_traits/src/normalize_erasing_regions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ fn not_outlives_predicate(p: ty::Predicate<'_>) -> bool {
5757
| ty::PredicateKind::Clause(ty::ClauseKind::Projection(..))
5858
| ty::PredicateKind::Clause(ty::ClauseKind::HostEffect(..))
5959
| ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(..))
60+
| ty::PredicateKind::Clause(ty::ClauseKind::UnstableImpl)
6061
| ty::PredicateKind::NormalizesTo(..)
6162
| ty::PredicateKind::AliasRelate(..)
6263
| ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(..))

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ pub(crate) fn clean_predicate<'tcx>(
398398
| ty::ClauseKind::ConstArgHasType(..)
399399
// FIXME(const_trait_impl): We can probably use this `HostEffect` pred to render `~const`.
400400
| ty::ClauseKind::HostEffect(_) => None,
401+
ty::ClauseKind::UnstableImpl => todo!(),
401402
}
402403
}
403404

0 commit comments

Comments
 (0)