Skip to content

Commit 364a171

Browse files
Remove usage of name_or_empty
1 parent 4ad8924 commit 364a171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_passes/src/check_attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
13221322
}
13231323
MetaItemKind::List(list) => {
13241324
for item in list {
1325-
let attr_name = item.name_or_empty();
1325+
let Some(attr_name) = item.name() else { continue };
13261326
if attr_name != sym::hide && attr_name != sym::show {
13271327
self.tcx.emit_node_span_lint(
13281328
INVALID_DOC_ATTRIBUTES,

0 commit comments

Comments
 (0)