Skip to content

Commit

Permalink
Rollup merge of rust-lang#86189 - JohnTitor:relate-fn-pub, r=Aaron1011
Browse files Browse the repository at this point in the history
Make `relate_type_and_mut` public

rust-lang#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`
  • Loading branch information
Dylan-DPC authored Jun 11, 2021
2 parents 1346b6c + 3607857 commit 19bbc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/relate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 19bbc39

Please sign in to comment.