Remove unused ObligationCauseCode::ProjectionWf
This commit is contained in:
parent
ec1393f14e
commit
54ee79b3b8
@ -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),
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user