Skip to content

Commit 5b78e6d

Browse files
authored
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```
2 parents 91faabb + 3607857 commit 5b78e6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/relate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub trait Relate<'tcx>: TypeFoldable<'tcx> + Copy {
112112
///////////////////////////////////////////////////////////////////////////
113113
// Relate impls
114114

115-
fn relate_type_and_mut<'tcx, R: TypeRelation<'tcx>>(
115+
pub fn relate_type_and_mut<'tcx, R: TypeRelation<'tcx>>(
116116
relation: &mut R,
117117
a: ty::TypeAndMut<'tcx>,
118118
b: ty::TypeAndMut<'tcx>,

0 commit comments

Comments
 (0)