diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-12 01:16:01 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-12 01:16:01 +0900 |
| commit | 5b78e6de18096c1c56915cb2c7b2105edf26a7e2 (patch) | |
| tree | b4d299a33099aea68bc7884e5b3e4164270d6c2b | |
| parent | 91faabb424ee100038a29b0ca624aa05e4923fd1 (diff) | |
| parent | 360785775647e25079bc920d4ad40a688760798a (diff) | |
| download | rust-5b78e6de18096c1c56915cb2c7b2105edf26a7e2.tar.gz rust-5b78e6de18096c1c56915cb2c7b2105edf26a7e2.zip | |
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```
| -rw-r--r-- | compiler/rustc_middle/src/ty/relate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/relate.rs b/compiler/rustc_middle/src/ty/relate.rs index 872d12cac93..3f426b13688 100644 --- a/compiler/rustc_middle/src/ty/relate.rs +++ b/compiler/rustc_middle/src/ty/relate.rs @@ -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>, |
