Remove unused ObligationCauseCode::ProjectionWf
This commit is contained in:
parent
ec1393f14e
commit
54ee79b3b8
2 changed files with 0 additions and 6 deletions
|
@ -250,9 +250,6 @@ pub enum ObligationCauseCode<'tcx> {
|
||||||
/// A tuple is WF only if its middle elements are `Sized`.
|
/// A tuple is WF only if its middle elements are `Sized`.
|
||||||
TupleElem,
|
TupleElem,
|
||||||
|
|
||||||
/// This is the trait reference from the given projection.
|
|
||||||
ProjectionWf(ty::AliasTy<'tcx>),
|
|
||||||
|
|
||||||
/// Must satisfy all of the where-clause predicates of the
|
/// Must satisfy all of the where-clause predicates of the
|
||||||
/// given item.
|
/// given item.
|
||||||
ItemObligation(DefId),
|
ItemObligation(DefId),
|
||||||
|
|
|
@ -2621,9 +2621,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
||||||
ObligationCauseCode::TupleElem => {
|
ObligationCauseCode::TupleElem => {
|
||||||
err.note("only the last element of a tuple may have a dynamically sized type");
|
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) => {
|
ObligationCauseCode::ReferenceOutlivesReferent(ref_ty) => {
|
||||||
err.note(format!(
|
err.note(format!(
|
||||||
"required so that reference `{ref_ty}` does not outlive its referent"
|
"required so that reference `{ref_ty}` does not outlive its referent"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue