Add rustc_on_unimplemented to Subst

This commit is contained in:
Jack Huey 2022-05-10 22:40:43 -04:00
parent 91afd02632
commit 06a1e8854c

View File

@ -499,6 +499,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<Ty<'tcx>> {
}
// Just call `foo.subst(tcx, substs)` to perform a substitution across `foo`.
#[rustc_on_unimplemented(message = "Calling `subst` must now be done through an `EarlyBinder`")]
pub trait Subst<'tcx>: Sized {
type Inner;