]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107470 - kadiwa4:bootstrap_cleanup, r=albertlarsan68
authorMatthias Krüger <matthias.krueger@famsik.de>
Wed, 1 Feb 2023 04:54:38 +0000 (05:54 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 04:54:38 +0000 (05:54 +0100)
commitb853b22270c794e8f2b76e346173d9387cfff0c1
tree84e6065258f4fbe5db20f6c42e07ddfc9c09b786
parent1dbb5efff35b98f8e11dab87d0a98136e6cf9390
parent043c634a9cbe6ee303eadd0a31b11203b9ef9386
Rollup merge of #107470 - kadiwa4:bootstrap_cleanup, r=albertlarsan68

Small bootstrap improvements

- i/o-less check for `xz` availability
- cache result of NixOS detection
- load correct `bootstrap` module even when a package of that name is installed
- no `-W semicolon_in_expressions_from_macros` – it is warn-by-default
- one type per variable (making dynamic typing less confusing)
- integrate python-side `--help` flag into the argument parser (makes `-hv` work as a short form of `--help --verbose`)

I even checked that it works with Python 2.
src/bootstrap/download.rs