Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4af0888

Browse files
committed
add non-regression test to existing doc attributes
when `normalize_doc_attributes` is off, they shouldn't be normalized to a doc comment
1 parent 43f8138 commit 4af0888

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/source/attrib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl Bar {
3030
/// Blah blah blooo.
3131
/// Blah blah blooo.
3232
#[an_attribute]
33+
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
3334
fn foo(&mut self) -> isize {
3435
}
3536

tests/target/attrib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl Bar {
3333
/// Blah blah blooo.
3434
/// Blah blah blooo.
3535
#[an_attribute]
36+
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
3637
fn foo(&mut self) -> isize {}
3738

3839
/// Blah blah bing.

0 commit comments

Comments
 (0)