diff options
| author | bors <bors@rust-lang.org> | 2022-10-06 03:01:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-10-06 03:01:57 +0000 |
| commit | 0152393048c4eb6c6d2aec63e9899cc86a269b44 (patch) | |
| tree | d50fbb38cf43a1fa28eb4f7084d1712f65ede0fc /compiler/rustc_const_eval/src | |
| parent | 27579a214dc2a918e67bffb51a0825005e8bd42e (diff) | |
| parent | 488eb4209e0e9f829e1a78516ac13c21d13df0d2 (diff) | |
| download | rust-0152393048c4eb6c6d2aec63e9899cc86a269b44.tar.gz rust-0152393048c4eb6c6d2aec63e9899cc86a269b44.zip | |
Auto merge of #99324 - reez12g:issue-99144, r=jyn514
Enable doctests in compiler/ crates Helps with https://github.com/rust-lang/rust/issues/99144
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -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 }, /// }); |
