diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-16 17:08:27 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-11-20 14:10:19 +1100 |
| commit | e2664eba508bc8c089d81cde5932adbc51f5ca89 (patch) | |
| tree | f84df04fba58b5c5cfec3c2f32fb4ef3812a9abd /compiler/rustc_ty_utils/src/structural_match.rs | |
| parent | 290fc68f2d27b67da5fd176965c42c01ea4c57fe (diff) | |
| download | rust-e2664eba508bc8c089d81cde5932adbc51f5ca89.tar.gz rust-e2664eba508bc8c089d81cde5932adbc51f5ca89.zip | |
Reduce exposure of some items.
Diffstat (limited to 'compiler/rustc_ty_utils/src/structural_match.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/structural_match.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/structural_match.rs b/compiler/rustc_ty_utils/src/structural_match.rs index 215acbe2c8f..6e7a9887774 100644 --- a/compiler/rustc_ty_utils/src/structural_match.rs +++ b/compiler/rustc_ty_utils/src/structural_match.rs @@ -39,6 +39,6 @@ fn has_structural_eq_impls<'tcx>(tcx: TyCtxt<'tcx>, adt_ty: Ty<'tcx>) -> bool { ocx.select_all_or_error().is_empty() } -pub fn provide(providers: &mut Providers) { +pub(crate) fn provide(providers: &mut Providers) { providers.has_structural_eq_impls = has_structural_eq_impls; } |
