Add rustc_on_unimplemented to Subst
This commit is contained in:
parent
91afd02632
commit
06a1e8854c
1 changed files with 1 additions and 0 deletions
|
@ -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`.
|
// 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 {
|
pub trait Subst<'tcx>: Sized {
|
||||||
type Inner;
|
type Inner;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue