Skip to content

Commit 06a1e88

Browse files
committed
Add rustc_on_unimplemented to Subst
1 parent 91afd02 commit 06a1e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/subst.rs

+1
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ impl<'tcx> TypeFoldable<'tcx> for &'tcx ty::List<Ty<'tcx>> {
499499
}
500500

501501
// Just call `foo.subst(tcx, substs)` to perform a substitution across `foo`.
502+
#[rustc_on_unimplemented(message = "Calling `subst` must now be done through an `EarlyBinder`")]
502503
pub trait Subst<'tcx>: Sized {
503504
type Inner;
504505

0 commit comments

Comments
 (0)