Include private items in ./mach doc and http://doc.servo.org/

See https://github.com/rust-lang/rust/issues/15347
This commit is contained in:
Simon Sapin 2015-07-17 22:31:57 +02:00
parent acf47a02cf
commit c85bfe1350
2 changed files with 7 additions and 1 deletions

View file

@ -156,8 +156,10 @@ class MachCommands(CommandBase):
else:
copy2(full_name, destination)
env = self.build_env()
env['RUSTDOC'] = '../../etc/rustdoc-with-private'
return subprocess.call(["cargo", "doc"] + params,
env=self.build_env(), cwd=self.servo_crate())
env=env, cwd=self.servo_crate())
@Command('browse-doc',
description='Generate documentation and open it in a web browser',