mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
Silence the warning about rustup --version
v.s. rustc --version
This commit is contained in:
parent
173123a768
commit
ee74a64f53
1 changed files with 6 additions and 1 deletions
|
@ -1028,7 +1028,12 @@ install them, let us know by filing a bug!")
|
|||
|
||||
def ensure_rustup_version(self):
|
||||
try:
|
||||
version_line = subprocess.check_output(["rustup" + BIN_SUFFIX, "--version"])
|
||||
version_line = subprocess.check_output(
|
||||
["rustup" + BIN_SUFFIX, "--version"],
|
||||
# Silence "info: This is the version for the rustup toolchain manager,
|
||||
# not the rustc compiler."
|
||||
stderr=open(os.devnull, "wb")
|
||||
)
|
||||
except OSError as e:
|
||||
if e.errno == NO_SUCH_FILE_OR_DIRECTORY:
|
||||
print("It looks like rustup is not installed. See instructions at "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue