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.
filter
is_some
map_or
1 parent 4896daa commit 9563eecCopy full SHA for 9563eec
compiler/rustc_attr/src/builtin.rs
@@ -28,7 +28,7 @@ pub fn rust_version_symbol() -> Symbol {
28
}
29
30
pub fn is_builtin_attr(attr: &Attribute) -> bool {
31
- attr.is_doc_comment() || attr.ident().filter(|ident| is_builtin_attr_name(ident.name)).is_some()
+ attr.is_doc_comment() || attr.ident().is_some_and(|ident| is_builtin_attr_name(ident.name))
32
33
34
enum AttrError {
0 commit comments