]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/fold.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_middle / src / ty / fold.rs
index 075928c889d8320d2cef60e8f999517ca4940c64..896a8280551d2e44908165d68b870cf70f21134b 100644 (file)
@@ -41,7 +41,7 @@
 //!
 //! For example, if you have `struct S(Ty, U)` where `S: TypeFoldable` and `U:
 //! TypeFoldable`, and an instance `S(ty, u)`, it would be visited like so:
-//! ```
+//! ```text
 //! s.visit_with(visitor) calls
 //! - s.super_visit_with(visitor) calls
 //!   - ty.visit_with(visitor) calls
@@ -486,13 +486,13 @@ struct RegionVisitor<F> {
             /// traversed. If we encounter a bound region bound by this
             /// binder or one outer to it, it appears free. Example:
             ///
-            /// ```
-            ///    for<'a> fn(for<'b> fn(), T)
-            /// ^          ^          ^     ^
-            /// |          |          |     | here, would be shifted in 1
-            /// |          |          | here, would be shifted in 2
-            /// |          | here, would be `INNERMOST` shifted in by 1
-            /// | here, initially, binder would be `INNERMOST`
+            /// ```ignore (illustrative)
+            ///       for<'a> fn(for<'b> fn(), T)
+            /// // ^          ^          ^     ^
+            /// // |          |          |     | here, would be shifted in 1
+            /// // |          |          | here, would be shifted in 2
+            /// // |          | here, would be `INNERMOST` shifted in by 1
+            /// // | here, initially, binder would be `INNERMOST`
             /// ```
             ///
             /// You see that, initially, *any* bound value is free,