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.
1 parent e7c7aa7 commit 88fa621Copy full SHA for 88fa621
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