mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use rustdoc --document-private-item instead of deprecated flags
… and use $RUSTDOCFLAGS instead of $RUSTDOC with a wrapper script
This commit is contained in:
parent
3a08f87ec8
commit
d96f0ff6a7
2 changed files with 1 additions and 5 deletions
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Skip the strip-private and strip-hidden rustdoc passes
|
||||
# https://github.com/rust-lang/rust/issues/15347
|
||||
rustdoc --no-defaults --passes collapse-docs --passes unindent-comments --passes strip-priv-imports "$@"
|
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue