Closed
Description
Right now multiple line doc comments are considered separate tokens and separate attributes:
/// A
/// B
/// C
pub struct S;
is interpreted as
#[doc = "/// A"]
#[doc = "/// B"]
#[doc = "/// C"]
pub struct S;
To mitigate the perf impact from turning normal comments into doc comments (#60930) we may want to merge multi-line line comments into a single token and a single attribute:
#[doc = "/// A\n/// B\n/// C"]
pub struct S;