You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #118727 - compiler-errors:lint-decorate, r=WaffleLapkin
Don't pass lint back out of lint decorator
Change the decorator function in the signature of the `emit_lint`/`span_lint`/etc family of methods from `impl for<'a, 'b> FnOnce(&'b mut DiagnosticBuilder<'a, ()>) -> &'b mut DiagnosticBuilder<'a, ()>` to `impl for<'a, 'b> FnOnce(&'b mut DiagnosticBuilder<'a, ()>)`. I consider it easier to read this way, especially when there's control flow involved.
r? nnethercote though feel free to reassign
.span_label(display_span,"because label contains path that resolves to same destination")
182
182
.note("when a link's destination is not specified,\nthe label is used to resolve intra-doc links")
183
183
.span_suggestion_with_style(link_span,"remove explicit link target",format!("[{}]", link_data.display_link),Applicability::MaybeIncorrect,SuggestionStyle::ShowAlways);
.span_note(def_span,"referenced explicit link target defined here")
235
233
.note("when a link's destination is not specified,\nthe label is used to resolve intra-doc links")
236
234
.span_suggestion_with_style(link_span,"remove explicit link target",format!("[{}]", link_data.display_link),Applicability::MaybeIncorrect,SuggestionStyle::ShowAlways);
0 commit comments