Skip to content

Commit

Permalink
Add rustc_on_unimplemented to Subst
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed May 14, 2022
1 parent 91afd02 commit 06a1e88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/subst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 06a1e88

Please sign in to comment.