1
Fork 0

rustdoc: only filter lines starting with '# ' from the shown code.

Currently any line starting with `#` is filtered from the output,
including line like `#[deriving]`; this patch makes it so lines are only
filtered when followed by a space similar to the current behaviour of
the tutorial/manual tester.
This commit is contained in:
Huon Wilson 2013-12-29 10:54:56 +11:00
parent 9477c49a7b
commit 582ad8ffc2
6 changed files with 46 additions and 5 deletions

View file

@ -171,6 +171,7 @@ impl Collector {
self.cnt += 1;
let libs = (*self.libs).clone();
let cratename = self.cratename.to_owned();
debug!("Creating test {}: {}", name, test);
self.tests.push(test::TestDescAndFn {
desc: test::TestDesc {
name: test::DynTestName(name),