@@ -4,19 +4,21 @@ use clippy_config::Conf;
44use clippy_utils:: attrs:: is_doc_hidden;
55use clippy_utils:: diagnostics:: { span_lint, span_lint_and_help, span_lint_and_then} ;
66use clippy_utils:: { is_entrypoint_fn, is_trait_impl_item} ;
7- use pulldown_cmark:: Event :: {
8- Code , DisplayMath , End , FootnoteReference , HardBreak , Html , InlineHtml , InlineMath , Rule , SoftBreak , Start ,
9- TaskListMarker , Text ,
10- } ;
11- use pulldown_cmark:: Tag :: { BlockQuote , CodeBlock , FootnoteDefinition , Heading , Item , Link , Paragraph } ;
12- use pulldown_cmark:: { BrokenLink , CodeBlockKind , CowStr , Options , TagEnd } ;
137use rustc_data_structures:: fx:: FxHashSet ;
148use rustc_errors:: Applicability ;
159use rustc_hir:: { Attribute , ImplItemKind , ItemKind , Node , Safety , TraitItemKind } ;
1610use rustc_lint:: { EarlyContext , EarlyLintPass , LateContext , LateLintPass , LintContext } ;
11+ use rustc_resolve:: rustdoc:: pulldown_cmark:: Event :: {
12+ Code , DisplayMath , End , FootnoteReference , HardBreak , Html , InlineHtml , InlineMath , Rule , SoftBreak , Start ,
13+ TaskListMarker , Text ,
14+ } ;
15+ use rustc_resolve:: rustdoc:: pulldown_cmark:: Tag :: {
16+ BlockQuote , CodeBlock , FootnoteDefinition , Heading , Item , Link , Paragraph ,
17+ } ;
18+ use rustc_resolve:: rustdoc:: pulldown_cmark:: { BrokenLink , CodeBlockKind , CowStr , Options , TagEnd } ;
1719use rustc_resolve:: rustdoc:: {
18- DocFragment , add_doc_fragment, attrs_to_doc_fragments, main_body_opts, source_span_for_markdown_range ,
19- span_of_fragments,
20+ DocFragment , add_doc_fragment, attrs_to_doc_fragments, main_body_opts, pulldown_cmark ,
21+ source_span_for_markdown_range , span_of_fragments,
2022} ;
2123use rustc_session:: impl_lint_pass;
2224use rustc_span:: Span ;
0 commit comments