Use rustdoc --document-private-item instead of deprecated flags

… and use $RUSTDOCFLAGS instead of $RUSTDOC with a wrapper script
This commit is contained in:
Simon Sapin 2017-11-22 15:32:40 +01:00
parent 3a08f87ec8
commit d96f0ff6a7
2 changed files with 1 additions and 5 deletions

View file

@ -486,7 +486,7 @@ class CommandBase(object):
if hosts_file_path:
env['HOST_FILE'] = hosts_file_path
env['RUSTDOC'] = path.join(self.context.topdir, 'etc', 'rustdoc-with-private')
env['RUSTDOCFLAGS'] = "--document-private-items"
if self.config["build"]["rustflags"]:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " " + self.config["build"]["rustflags"]