Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a175f36

Browse files
committed
Document compute_bounds_that_match_assoc_type
1 parent af38d71 commit a175f36

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_typeck/src/astconv

1 file changed

+2
-0
lines changed

compiler/rustc_typeck/src/astconv/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
886886
self.compute_bounds_inner(param_ty, &ast_bounds, sized_by_default, span)
887887
}
888888

889+
/// Convert the bounds in `ast_bounds` that refer to traits which define an associated type
890+
/// named `assoc_name` into ty::Bounds. Ignore the rest.
889891
pub fn compute_bounds_that_match_assoc_type(
890892
&self,
891893
param_ty: Ty<'tcx>,

0 commit comments

Comments
 (0)