about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-06-12 08:47:26 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-06-12 08:55:52 -0700
commit280176178b1449ce9ba3bc1d2b7ebf3f1d0abb6a (patch)
treeb020dba2afbf60d6b388cb3ce49eeacec30a8a04
parent1dd45612f80e2b15d0346d4bdf8838572eeee3bf (diff)
downloadrust-280176178b1449ce9ba3bc1d2b7ebf3f1d0abb6a.tar.gz
rust-280176178b1449ce9ba3bc1d2b7ebf3f1d0abb6a.zip
Make `type_marked_structural` private
-rw-r--r--src/librustc_trait_selection/traits/mod.rs1
-rw-r--r--src/librustc_trait_selection/traits/structural_match.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_trait_selection/traits/mod.rs b/src/librustc_trait_selection/traits/mod.rs
index 225bbfeb262..9ab87e6b6ca 100644
--- a/src/librustc_trait_selection/traits/mod.rs
+++ b/src/librustc_trait_selection/traits/mod.rs
@@ -60,7 +60,6 @@ pub use self::specialize::specialization_graph::FutureCompatOverlapError;
 pub use self::specialize::specialization_graph::FutureCompatOverlapErrorKind;
 pub use self::specialize::{specialization_graph, translate_substs, OverlapError};
 pub use self::structural_match::search_for_structural_match_violation;
-pub use self::structural_match::type_marked_structural;
 pub use self::structural_match::NonStructuralMatchTy;
 pub use self::util::{elaborate_predicates, elaborate_trait_ref, elaborate_trait_refs};
 pub use self::util::{expand_trait_aliases, TraitAliasExpander};
diff --git a/src/librustc_trait_selection/traits/structural_match.rs b/src/librustc_trait_selection/traits/structural_match.rs
index d01163a29d5..e59fbd313c8 100644
--- a/src/librustc_trait_selection/traits/structural_match.rs
+++ b/src/librustc_trait_selection/traits/structural_match.rs
@@ -66,7 +66,7 @@ pub fn search_for_structural_match_violation<'tcx>(
 ///
 /// Note that this does *not* recursively check if the substructure of `adt_ty`
 /// implements the traits.
-pub fn type_marked_structural(
+fn type_marked_structural(
     infcx: &InferCtxt<'_, 'tcx>,
     adt_ty: Ty<'tcx>,
     cause: ObligationCause<'tcx>,