]> git.lizzy.rs Git - rust.git/commitdiff
Add fixme regarding remapping paths for doctests
authorPhilip Craig <philipjcraig@gmail.com>
Tue, 3 Oct 2017 10:35:55 +0000 (20:35 +1000)
committerPhilip Craig <philipjcraig@gmail.com>
Tue, 3 Oct 2017 10:36:53 +0000 (20:36 +1000)
src/librustdoc/test.rs

index 7fa1b38bdadfac344b25fe39649ed193da2c57f3..5ce73d38fdf0eae331de8f795fe447d0657d8642 100644 (file)
@@ -184,6 +184,8 @@ fn run_test(test: &str, cratename: &str, filename: &str, cfgs: Vec<String>, libs
     // the test harness wants its own `main` & top level functions, so
     // never wrap the test in `fn main() { ... }`
     let test = make_test(test, Some(cratename), as_test_harness, opts);
+    // FIXME(#44940): if doctests ever support path remapping, then this filename
+    // needs to be the result of CodeMap::span_to_unmapped_path
     let input = config::Input::Str {
         name: filename.to_owned(),
         input: test.to_owned(),