mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-13 20:46:48 +00:00
Add rustc_on_unimplemented to Subst
This commit is contained in:
parent
91afd02632
commit
06a1e8854c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user