Remove unused ObligationCauseCode::ProjectionWf

This commit is contained in:
Michael Goulet 2023-11-23 06:27:22 +00:00
parent ec1393f14e
commit 54ee79b3b8
2 changed files with 0 additions and 6 deletions

View File

@ -250,9 +250,6 @@ pub enum ObligationCauseCode<'tcx> {
/// A tuple is WF only if its middle elements are `Sized`.
TupleElem,
/// This is the trait reference from the given projection.
ProjectionWf(ty::AliasTy<'tcx>),
/// Must satisfy all of the where-clause predicates of the
/// given item.
ItemObligation(DefId),

View File

@ -2621,9 +2621,6 @@ fn note_obligation_cause_code<T>(
ObligationCauseCode::TupleElem => {
err.note("only the last element of a tuple may have a dynamically sized type");
}
ObligationCauseCode::ProjectionWf(data) => {
err.note(format!("required so that the projection `{data}` is well-formed"));
}
ObligationCauseCode::ReferenceOutlivesReferent(ref_ty) => {
err.note(format!(
"required so that reference `{ref_ty}` does not outlive its referent"