From 698f8c2f01ea549d77d7dc3338a12e04c11057b9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:02:58 +0200 Subject: Adding upstream version 1.64.0+dfsg1. Signed-off-by: Daniel Baumann --- ...doc_attributes_should_not_imply_format_doc_comments.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs (limited to 'src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs') diff --git a/src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs b/src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs new file mode 100644 index 000000000..562d9565e --- /dev/null +++ b/src/tools/rustfmt/tests/target/normalize_doc_attributes_should_not_imply_format_doc_comments.rs @@ -0,0 +1,15 @@ +// rustfmt-normalize_doc_attributes: true + +/// Foo +/// +/// # Example +/// ``` +/// # #![cfg_attr(not(dox), feature(cfg_target_feature, target_feature, stdsimd))] +/// # #![cfg_attr(not(dox), no_std)] +/// fn foo() { } +/// ``` +/// +fn foo() {} + +///Bar documents +fn bar() {} -- cgit v1.2.3