Skip to content
Browse files

another comment

  • Loading branch information...
nikomatsakis authored and alexreg committed Jun 5, 2019
1 parent 18d5085 commit e48dd1257c54dda498f02ce7823b6d7fbf24c36a
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/librustc_typeck/
@@ -941,7 +941,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
/// It adds these `ast_bounds` into the `bounds` structure.
/// **A note on binders:** There is an implied binder around
/// **A note on binders:** there is an implied binder around
/// `param_ty` and `ast_bounds`. See `instantiate_poly_trait_ref`
/// for more details.
fn add_bounds(&self,
@@ -1017,6 +1017,12 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {

/// Given an HIR binding like `Item = Foo` or `Item: Foo`, pushes the corresponding predicates
/// onto `bounds`.
/// **A note on binders:** given something like `T: for<'a> Iterator<Item = &'a u32>`, the
/// `trait_ref` here will be `for<'a> T: Iterator`. The `binding` data however is from *inside*
/// the binder (e.g., `&'a u32`) and hence may reference bound regions.
fn add_predicates_for_ast_type_binding(
hir_ref_id: hir::HirId,

0 comments on commit e48dd12

Please sign in to comment.
You can’t perform that action at this time.