Skip to content

Commit 9bbd7a3

Browse files
committed
Add fixme regarding remapping paths for doctests
1 parent 3a225c7 commit 9bbd7a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/test.rs

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ fn run_test(test: &str, cratename: &str, filename: &str, cfgs: Vec<String>, libs
184184
// the test harness wants its own `main` & top level functions, so
185185
// never wrap the test in `fn main() { ... }`
186186
let test = make_test(test, Some(cratename), as_test_harness, opts);
187+
// FIXME(#44940): if doctests ever support path remapping, then this filename
188+
// needs to be the result of CodeMap::span_to_unmapped_path
187189
let input = config::Input::Str {
188190
name: filename.to_owned(),
189191
input: test.to_owned(),

0 commit comments

Comments
 (0)