From a175f36c954abf69aaf4021a321ea13c8573cb40 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 24 Nov 2020 16:58:25 -0300 Subject: [PATCH] Document compute_bounds_that_match_assoc_type --- compiler/rustc_typeck/src/astconv/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_typeck/src/astconv/mod.rs b/compiler/rustc_typeck/src/astconv/mod.rs index c0c4e5b517e..e9965b47344 100644 --- a/compiler/rustc_typeck/src/astconv/mod.rs +++ b/compiler/rustc_typeck/src/astconv/mod.rs @@ -886,6 +886,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { self.compute_bounds_inner(param_ty, &ast_bounds, sized_by_default, span) } + /// Convert the bounds in `ast_bounds` that refer to traits which define an associated type + /// named `assoc_name` into ty::Bounds. Ignore the rest. pub fn compute_bounds_that_match_assoc_type( &self, param_ty: Ty<'tcx>,