about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authormitaa <mitaa.ceb@gmail.com>2016-02-23 07:52:43 +0100
committermitaa <mitaa.ceb@gmail.com>2016-02-24 19:43:02 +0100
commitcf76fcf30d1efefd01bba0ed9b81cd867262346f (patch)
treeb1d0ff603cb4909b84eab7b3dd29413934b90664 /src/test/rustdoc
parent27ca2507defe13c5c989a9aa64d138645a7db65e (diff)
downloadrust-cf76fcf30d1efefd01bba0ed9b81cd867262346f.tar.gz
rust-cf76fcf30d1efefd01bba0ed9b81cd867262346f.zip
Fix source-links for files with absolute-paths
`clean_srcpath` tries to make the source-path relative to `src_root`,
but this didn't work since `src_root` itself wasn't absolute.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-26995.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-26995.rs b/src/test/rustdoc/issue-26995.rs
new file mode 100644
index 00000000000..bfb440a1839
--- /dev/null
+++ b/src/test/rustdoc/issue-26995.rs
@@ -0,0 +1,17 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// ignore-windows
+// compile-flags: --no-defaults
+
+// @has src/issue_26995/dev/null.html
+// @has issue_26995/null/index.html '//a/@href' '../../src/issue_26995/dev/null.html'
+#[path="/dev/null"]
+pub mod null;