about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-04-04 00:08:32 +0000
committerMichael Goulet <michael@errs.io>2023-04-04 00:09:12 +0000
commita368316905a6c8d4b7a0100c92f6f0186c7c2db8 (patch)
treea2ab59160a27f58d97d447f49884ff871652c4d8 /compiler/rustc_trait_selection/src/traits
parent48829ea74bcb8808f9af5cbb1173f01ff865ff1d (diff)
downloadrust-a368316905a6c8d4b7a0100c92f6f0186c7c2db8.tar.gz
rust-a368316905a6c8d4b7a0100c92f6f0186c7c2db8.zip
Remove intercrate and mark_ambiguous from Relation
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/error_reporting/method_chain.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/method_chain.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/method_chain.rs
index 13607b9079a..7e1dba4ed26 100644
--- a/compiler/rustc_trait_selection/src/traits/error_reporting/method_chain.rs
+++ b/compiler/rustc_trait_selection/src/traits/error_reporting/method_chain.rs
@@ -21,10 +21,6 @@ impl<'a, 'tcx> TypeRelation<'tcx> for CollectAllMismatches<'a, 'tcx> {
         self.infcx.tcx
     }
 
-    fn intercrate(&self) -> bool {
-        false
-    }
-
     fn param_env(&self) -> ty::ParamEnv<'tcx> {
         self.param_env
     }
@@ -33,10 +29,6 @@ impl<'a, 'tcx> TypeRelation<'tcx> for CollectAllMismatches<'a, 'tcx> {
         true
     }
 
-    fn mark_ambiguous(&mut self) {
-        bug!()
-    }
-
     fn relate_with_variance<T: Relate<'tcx>>(
         &mut self,
         _: ty::Variance,