Skip to content

Commit 2801761

Browse files
Make type_marked_structural private
1 parent 1dd4561 commit 2801761

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustc_trait_selection/traits/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ pub use self::specialize::specialization_graph::FutureCompatOverlapError;
6060
pub use self::specialize::specialization_graph::FutureCompatOverlapErrorKind;
6161
pub use self::specialize::{specialization_graph, translate_substs, OverlapError};
6262
pub use self::structural_match::search_for_structural_match_violation;
63-
pub use self::structural_match::type_marked_structural;
6463
pub use self::structural_match::NonStructuralMatchTy;
6564
pub use self::util::{elaborate_predicates, elaborate_trait_ref, elaborate_trait_refs};
6665
pub use self::util::{expand_trait_aliases, TraitAliasExpander};

src/librustc_trait_selection/traits/structural_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn search_for_structural_match_violation<'tcx>(
6666
///
6767
/// Note that this does *not* recursively check if the substructure of `adt_ty`
6868
/// implements the traits.
69-
pub fn type_marked_structural(
69+
fn type_marked_structural(
7070
infcx: &InferCtxt<'_, 'tcx>,
7171
adt_ty: Ty<'tcx>,
7272
cause: ObligationCause<'tcx>,

0 commit comments

Comments
 (0)