summary refs log tree commit diff
diff options
context:
space:
mode:
authorKirby Linvill <kjlinvill@gmail.com>2023-11-10 17:18:59 -0700
committerKirby Linvill <kjlinvill@gmail.com>2023-11-10 17:18:59 -0700
commitae1726bfceffa271131d9ef852c1d553688aa6a4 (patch)
treea76f64d85dc80df289f77b200e2f2f4d6113b025
parentd517a1cbda49309c8364daaedfee040371e616fb (diff)
downloadrust-ae1726bfceffa271131d9ef852c1d553688aa6a4.tar.gz
rust-ae1726bfceffa271131d9ef852c1d553688aa6a4.zip
Ignore FieldIdx and VariantIdx examples in docs
-rw-r--r--compiler/stable_mir/src/mir/body.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/stable_mir/src/mir/body.rs b/compiler/stable_mir/src/mir/body.rs
index 48d4a3d37e2..a5b51ce6a34 100644
--- a/compiler/stable_mir/src/mir/body.rs
+++ b/compiler/stable_mir/src/mir/body.rs
@@ -498,7 +498,7 @@ pub const RETURN_LOCAL: Local = 0;
 /// The source-order index of a field in a variant.
 ///
 /// For example, in the following types,
-/// ```rust
+/// ```ignore(illustrative)
 /// enum Demo1 {
 ///    Variant0 { a: bool, b: i32 },
 ///    Variant1 { c: u8, d: u64 },
@@ -514,7 +514,7 @@ type FieldIdx = usize;
 /// The source-order index of a variant in a type.
 ///
 /// For example, in the following types,
-/// ```rust
+/// ```ignore(illustrative)
 /// enum Demo1 {
 ///    Variant0 { a: bool, b: i32 },
 ///    Variant1 { c: u8, d: u64 },