Rollup merge of #86189 - JohnTitor:relate-fn-pub, r=Aaron1011
Make `relate_type_and_mut` public #85343 improved diagnostics around `Relate` impls but made `relate_type_and_mut` private, which was accessible as `relate` previously. This makes it public so that we can use it on rust-semverver. r? ```@Aaron1011```
This commit is contained in:
commit
5b78e6de18
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ pub trait Relate<'tcx>: TypeFoldable<'tcx> + Copy {
|
|||
///////////////////////////////////////////////////////////////////////////
|
||||
// Relate impls
|
||||
|
||||
fn relate_type_and_mut<'tcx, R: TypeRelation<'tcx>>(
|
||||
pub fn relate_type_and_mut<'tcx, R: TypeRelation<'tcx>>(
|
||||
relation: &mut R,
|
||||
a: ty::TypeAndMut<'tcx>,
|
||||
b: ty::TypeAndMut<'tcx>,
|
||||
|
|
Loading…
Add table
Reference in a new issue