]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/structural_match.rs
Rollup merge of #92098 - semarie:openbsd-platform, r=pietroalbini
[rust.git] / compiler / rustc_trait_selection / src / traits / structural_match.rs
index 45960bd365346ba6fe3ec36eb9d0b6733559111d..2ed7a8f9cf9ea2d2f4366289f3f6f6a5ee3ab43d 100644 (file)
@@ -130,9 +130,6 @@ fn type_marked_structural(&self, adt_ty: Ty<'tcx>) -> bool {
 
 impl<'a, 'tcx> TypeVisitor<'tcx> for Search<'a, 'tcx> {
     type BreakTy = NonStructuralMatchTy<'tcx>;
-    fn tcx_for_anon_const_substs(&self) -> Option<TyCtxt<'tcx>> {
-        Some(self.tcx())
-    }
 
     fn visit_ty(&mut self, ty: Ty<'tcx>) -> ControlFlow<Self::BreakTy> {
         debug!("Search visiting ty: {:?}", ty);