]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/method/probe.rs
fix most compiler/ doctests
[rust.git] / compiler / rustc_typeck / src / check / method / probe.rs
index e04cc42b6d7e5f56631bde132508a0dffbc6148d..a46be244e39a0fbb0894f4434236b25e09250e60 100644 (file)
@@ -200,8 +200,9 @@ pub struct Pick<'tcx> {
     pub import_ids: SmallVec<[LocalDefId; 1]>,
 
     /// Indicates that the source expression should be autoderef'd N times
-    ///
-    ///     A = expr | *expr | **expr | ...
+    /// ```ignore (not-rust)
+    /// A = expr | *expr | **expr | ...
+    /// ```
     pub autoderefs: usize,
 
     /// Indicates that we want to add an autoref (and maybe also unsize it), or if the receiver is
@@ -1631,7 +1632,7 @@ fn consider_probe(
     ///
     /// Example (`src/test/ui/method-two-trait-defer-resolution-1.rs`):
     ///
-    /// ```
+    /// ```ignore (illustrative)
     /// trait Foo { ... }
     /// impl Foo for Vec<i32> { ... }
     /// impl Foo for Vec<usize> { ... }