diff options
| author | reez12g <reez12g@gmail.com> | 2022-09-16 20:11:46 +0900 |
|---|---|---|
| committer | reez12g <reez12g@gmail.com> | 2022-09-29 16:49:23 +0900 |
| commit | 00612e23cb863d6730fe77001068438039d8078b (patch) | |
| tree | 44c080275998bc24b45915c78d6b576eff65f7cf /compiler/rustc_const_eval | |
| parent | 73775a96dcc04ea4d592be5f21040f2401e0aadd (diff) | |
| download | rust-00612e23cb863d6730fe77001068438039d8078b.tar.gz rust-00612e23cb863d6730fe77001068438039d8078b.zip | |
Mark ignore(illustrative) on docs in compiler/rustc_const_eval/src/interpret/validity.rs
Diffstat (limited to 'compiler/rustc_const_eval')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/validity.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/validity.rs b/compiler/rustc_const_eval/src/interpret/validity.rs index 14aaee6ac3f..d4146c24241 100644 --- a/compiler/rustc_const_eval/src/interpret/validity.rs +++ b/compiler/rustc_const_eval/src/interpret/validity.rs @@ -56,7 +56,7 @@ macro_rules! throw_validation_failure { /// This lets you use the patterns as a kind of validation list, asserting which errors /// can possibly happen: /// -/// ``` +/// ```ignore(illustrative) /// let v = try_validation!(some_fn(), some_path, { /// Foo | Bar | Baz => { "some failure" }, /// }); @@ -65,7 +65,7 @@ macro_rules! throw_validation_failure { /// The patterns must be of type `UndefinedBehaviorInfo`. /// An additional expected parameter can also be added to the failure message: /// -/// ``` +/// ```ignore(illustrative) /// let v = try_validation!(some_fn(), some_path, { /// Foo | Bar | Baz => { "some failure" } expected { "something that wasn't a failure" }, /// }); @@ -74,7 +74,7 @@ macro_rules! throw_validation_failure { /// An additional nicety is that both parameters actually take format args, so you can just write /// the format string in directly: /// -/// ``` +/// ```ignore(illustrative) /// let v = try_validation!(some_fn(), some_path, { /// Foo | Bar | Baz => { "{:?}", some_failure } expected { "{}", expected_value }, /// }); |
