Skip to content

Commit

Permalink
Add fixme regarding remapping paths for doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Oct 3, 2017
1 parent 3a225c7 commit 9bbd7a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustdoc/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9bbd7a3

Please sign in to comment.