We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 497e170 + 88fa621 commit 41e1830Copy full SHA for 41e1830
compiler/rustc_ast/src/attr/mod.rs
@@ -232,6 +232,8 @@ impl AttrItem {
232
}
233
234
impl Attribute {
235
+ /// Returns `true` if it is a sugared doc comment (`///` or `//!` for example).
236
+ /// So `#[doc = "doc"]` will return `false`.
237
pub fn is_doc_comment(&self) -> bool {
238
match self.kind {
239
AttrKind::Normal(..) => false,
0 commit comments