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:
parent
9477c49a7b
commit
582ad8ffc2
6 changed files with 46 additions and 5 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue