mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
add non-regression test to existing doc attributes
when `normalize_doc_attributes` is off, they shouldn't be normalized to a doc comment
This commit is contained in:
parent
43f813867c
commit
4af0888648
@ -30,6 +30,7 @@ impl Bar {
|
||||
/// Blah blah blooo.
|
||||
/// Blah blah blooo.
|
||||
#[an_attribute]
|
||||
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
|
||||
fn foo(&mut self) -> isize {
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,7 @@ impl Bar {
|
||||
/// Blah blah blooo.
|
||||
/// Blah blah blooo.
|
||||
#[an_attribute]
|
||||
#[doc = "an attribute that shouldn't be normalized to a doc comment"]
|
||||
fn foo(&mut self) -> isize {}
|
||||
|
||||
/// Blah blah bing.
|
||||
|
Loading…
Reference in New Issue
Block a user