diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-09-19 20:23:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-19 20:23:20 +0200 |
| commit | 52a0d136f5c542846c7ccc17c12103a9d547a76a (patch) | |
| tree | ae4dff55c4c84c2dd032d4d0ae5cfb4a6430f66b /tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs | |
| parent | 0060db74f9530c9239b256c45dff8815667343cc (diff) | |
| parent | 295ec09b63b1c8352d4a75895eb5d8bd85975b16 (diff) | |
Rollup merge of #115947 - GuillaumeGomez:custom_code_classes_in_docs-warning, r=notriddle
Custom code classes in docs warning Fixes https://github.com/rust-lang/rust/issues/115938. This PR does two things: 1. Unless the `custom_code_classes_in_docs` feature is enabled, it will use the old codeblock tag parser. 2. If there is a codeblock tag that starts with a `.`, it will emit a behaviour change warning. Hopefully this is the last missing part for this feature until stabilization. Follow-up of https://github.com/rust-lang/rust/pull/110800. r? `@notriddle`
Diffstat (limited to 'tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs')
| -rw-r--r-- | tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs index 3f0f8b5b9f9..99263a944f8 100644 --- a/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs +++ b/tests/rustdoc-ui/feature-gate-custom_code_classes_in_docs.rs @@ -8,3 +8,8 @@ //~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483> //~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable pub struct Bar; + +/// ```ASN.1 +/// int main(void) { return 0; } +/// ``` +pub struct Bar2; |
