diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-01 15:24:32 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-05-01 16:45:27 +0200 |
| commit | 2f6abd190da3dba44058253cbbfdb900906ef1b6 (patch) | |
| tree | bf6bd56ae972a28188de734818c4af978413edbe /src/librustdoc/markdown.rs | |
| parent | 378a43a06510f3e3a49c69c8de71745e6a884048 (diff) | |
| download | rust-2f6abd190da3dba44058253cbbfdb900906ef1b6.tar.gz rust-2f6abd190da3dba44058253cbbfdb900906ef1b6.zip | |
Stabilize `custom_code_classes_in_docs` feature
Diffstat (limited to 'src/librustdoc/markdown.rs')
| -rw-r--r-- | src/librustdoc/markdown.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index dcd2cf02a30..86b31981196 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -82,8 +82,6 @@ pub(crate) fn render<P: AsRef<Path>>( error_codes, edition, playground: &playground, - // For markdown files, it'll be disabled until the feature is enabled by default. - custom_code_classes_in_docs: false, } .into_string() } else { @@ -95,8 +93,6 @@ pub(crate) fn render<P: AsRef<Path>>( edition, playground: &playground, heading_offset: HeadingOffset::H1, - // For markdown files, it'll be disabled until the feature is enabled by default. - custom_code_classes_in_docs: false, } .into_string() }; @@ -168,14 +164,7 @@ pub(crate) fn test(options: Options) -> Result<(), String> { let codes = ErrorCodes::from(options.unstable_features.is_nightly_build()); // For markdown files, custom code classes will be disabled until the feature is enabled by default. - find_testable_code( - &input_str, - &mut collector, - codes, - options.enable_per_target_ignores, - None, - false, - ); + find_testable_code(&input_str, &mut collector, codes, options.enable_per_target_ignores, None); crate::doctest::run_tests(options.test_args, options.nocapture, collector.tests); Ok(()) |
