@@ -512,13 +512,15 @@ fn resolve_local<'tcx>(
512512
513513 /// Returns `true` if `pat` match the `P&` non-terminal.
514514 ///
515+ /// ```text
515516 /// P& = ref X
516517 /// | StructName { ..., P&, ... }
517518 /// | VariantName(..., P&, ...)
518519 /// | [ ..., P&, ... ]
519520 /// | ( ..., P&, ... )
520521 /// | ... "|" P& "|" ...
521522 /// | box P&
523+ /// ```
522524 fn is_binding_pat ( pat : & hir:: Pat < ' _ > ) -> bool {
523525 // Note that the code below looks for *explicit* refs only, that is, it won't
524526 // know about *implicit* refs as introduced in #42640.
@@ -575,6 +577,7 @@ fn resolve_local<'tcx>(
575577
576578 /// If `expr` matches the `E&` grammar, then records an extended rvalue scope as appropriate:
577579 ///
580+ /// ```text
578581 /// E& = & ET
579582 /// | StructName { ..., f: E&, ... }
580583 /// | [ ..., E&, ... ]
@@ -583,6 +586,7 @@ fn resolve_local<'tcx>(
583586 /// | box E&
584587 /// | E& as ...
585588 /// | ( E& )
589+ /// ```
586590 fn record_rvalue_scope_if_borrow_expr < ' tcx > (
587591 visitor : & mut RegionResolutionVisitor < ' tcx > ,
588592 expr : & hir:: Expr < ' _ > ,
@@ -623,11 +627,13 @@ fn resolve_local<'tcx>(
623627 /// More formally, if `expr` matches the grammar `ET`, record the rvalue scope of the matching
624628 /// `<rvalue>` as `blk_id`:
625629 ///
630+ /// ```text
626631 /// ET = *ET
627632 /// | ET[...]
628633 /// | ET.f
629634 /// | (ET)
630635 /// | <rvalue>
636+ /// ```
631637 ///
632638 /// Note: ET is intended to match "rvalues or places based on rvalues".
633639 fn record_rvalue_scope < ' tcx > (
0 commit comments