diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-30 16:42:33 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-30 16:42:33 +0100 |
| commit | a8b0f6f239aed52824682c42a3753687483a2607 (patch) | |
| tree | 9e78b2bd0552d7d7b78a1222341df8bdb8ef601c | |
| parent | eae940fcef7f95d31b566f92f511f91f24f2f703 (diff) | |
| download | rust-a8b0f6f239aed52824682c42a3753687483a2607.tar.gz rust-a8b0f6f239aed52824682c42a3753687483a2607.zip | |
make some doc comments not doc tests
| -rw-r--r-- | src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs | 8 | ||||
| -rw-r--r-- | src/tools/miri/src/borrow_tracker/tree_borrows/unimap.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs b/src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs index 4394e3c2c86..2690bc026a1 100644 --- a/src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs +++ b/src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs @@ -365,7 +365,7 @@ type S = &'static str; /// Pretty-printing details /// /// Example: -/// ``` +/// ```rust,ignore (private type) /// DisplayFmtWrapper { /// top: '>', /// bot: '<', @@ -393,7 +393,7 @@ struct DisplayFmtWrapper { /// Formating of the permissions on each range. /// /// Example: -/// ``` +/// ```rust,ignore (private type) /// DisplayFmtPermission { /// open: "[", /// sep: "|", @@ -425,7 +425,7 @@ struct DisplayFmtPermission { /// Formating of the tree structure. /// /// Example: -/// ``` +/// ```rust,ignore (private type) /// DisplayFmtPadding { /// join_middle: "|-", /// join_last: "'-", @@ -463,7 +463,7 @@ struct DisplayFmtPadding { /// How to show whether a location has been accessed /// /// Example: -/// ``` +/// ```rust,ignore (private type) /// DisplayFmtAccess { /// yes: " ", /// no: "?", diff --git a/src/tools/miri/src/borrow_tracker/tree_borrows/unimap.rs b/src/tools/miri/src/borrow_tracker/tree_borrows/unimap.rs index d9cad9c8e0b..f45b2d9e00a 100644 --- a/src/tools/miri/src/borrow_tracker/tree_borrows/unimap.rs +++ b/src/tools/miri/src/borrow_tracker/tree_borrows/unimap.rs @@ -132,7 +132,7 @@ where /// the associated `UniIndex` from ALL `UniValMap`s. /// /// Example of such behavior: - /// ``` + /// ```rust,ignore (private type can't be doctested) /// let mut keymap = UniKeyMap::<char>::default(); /// let mut valmap = UniValMap::<char>::default(); /// // Insert 'a' -> _ -> 'A' |
