@@ -7,18 +7,18 @@ use rustc_span::{BytePos, Pos, Span};
77use super :: DOC_BROKEN_LINK ;
88
99/// Scan and report broken link on documents.
10- /// It ignores false positives detected by pulldown_cmark, and only
10+ /// It ignores false positives detected by ` pulldown_cmark` , and only
1111/// warns users when the broken link is consider a URL.
1212// NOTE: We don't check these other cases because
1313// rustdoc itself will check and warn about it:
1414// - When a link url is broken across multiple lines in the URL path part
1515// - When a link tag is missing the close parenthesis character at the end.
1616// - When a link has whitespace within the url link.
17- pub fn check ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & String , fragments : & Vec < DocFragment > ) {
17+ pub fn check ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & str , fragments : & [ DocFragment ] ) {
1818 warn_if_broken_link ( cx, bl, doc, fragments) ;
1919}
2020
21- fn warn_if_broken_link ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & String , fragments : & Vec < DocFragment > ) {
21+ fn warn_if_broken_link ( cx : & LateContext < ' _ > , bl : & PullDownBrokenLink < ' _ > , doc : & str , fragments : & [ DocFragment ] ) {
2222 if let Some ( span) = source_span_for_markdown_range ( cx. tcx , doc, & bl. span , fragments) {
2323 let mut len = 0 ;
2424
0 commit comments