We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cf9f1a commit ebf9583Copy full SHA for ebf9583
compiler/rustc_passes/src/diagnostic_items.rs
@@ -83,7 +83,7 @@ fn collect_item(tcx: TyCtxt<'_>, items: &mut DiagnosticItems, name: Symbol, item
83
}
84
85
86
-/// Extract the first `rustc_diagnostic_item = "$name"` out of a list of attributes.p
+/// Extract the first `rustc_diagnostic_item = "$name"` out of a list of attributes.
87
fn extract(attrs: &[ast::Attribute]) -> Option<Symbol> {
88
attrs.iter().find_map(|attr| {
89
if attr.has_name(sym::rustc_diagnostic_item) { attr.value_str() } else { None }
0 commit comments