about summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2017-12-22 13:12:54 -0600
committerManish Goregaokar <manishsmail@gmail.com>2018-01-22 15:21:28 +0530
commitc3d0d5a4bb905fbefaaa8034ce5bef690923a8fb (patch)
tree4da8ac55513604f01813327ab44a7917a0637ad5 /src/librustdoc/html
parent76f831647ade4a5e82244bd4d19da308478cc83d (diff)
downloadrust-c3d0d5a4bb905fbefaaa8034ce5bef690923a8fb.tar.gz
rust-c3d0d5a4bb905fbefaaa8034ce5bef690923a8fb.zip
resolve paths when cleaning docs
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/markdown.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 498c8911dc0..9bb35da246c 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -1169,6 +1169,8 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {
                     let s = unsafe { (*link).as_bytes() };
                     let s = str::from_utf8(&s).unwrap().to_owned();
 
+                    debug!("found link: {}", s);
+
                     links.push(s);
                 }
 
@@ -1214,6 +1216,7 @@ pub fn markdown_links(md: &str, render_type: RenderType) -> Vec<String> {
 
             for ev in iter {
                 if let Event::Start(Tag::Link(dest, _)) = ev {
+                    debug!("found link: {}", dest);
                     links.push(dest.into_owned());
                 }
             }