-
Couldn't load subscription status.
- Fork 13.9k
Rollup of 6 pull requests #72144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 6 pull requests #72144
Conversation
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
Because there is at most one file.
`prefix` should not be mutable. Change the process from for loop to find, which makes the `prefix` able to be immutable.
Fix unused_parens false positive when using binary operations Fixes rust-lang#71290 r? @cuviper who provided instructions
…dows, r=Mark-Simulacrum
Fix bootstrap failing on win32
```powershell
python x.py -h # or really any x.py command
```
would fail with
```
info: Downloading and building bootstrap before processing --help
command. See src/bootstrap/README.md for help with common
commands.
Updating only changed submodules
Submodules updated in 0.15 seconds
Traceback (most recent call last):
File "x.py", line 11, in <module>
bootstrap.main()
File "C:\Users\Joshua\Projects\forks\rust\src\bootstrap\bootstrap.py", line 960, in main
bootstrap(help_triggered)
File "C:\Users\Joshua\Projects\forks\rust\src\bootstrap\bootstrap.py", line 925, in bootstrap
build.build = args.build or build.build_triple()
File "C:\Users\Joshua\Projects\forks\rust\src\bootstrap\bootstrap.py", line 731, in build_triple
return default_build_triple()
File "C:\Users\Joshua\Projects\forks\rust\src\bootstrap\bootstrap.py", line 184, in default_build_triple
ostype = require(["uname", "-s"], exit=required).decode(default_encoding)
AttributeError: 'NoneType' object has no attribute 'decode'
```
This PR defers the `decode` call until after we're sure `ostype` and `cputype` are not `None`, as they would be on Windows since `uname` doesn't exist
…d_files, r=alexcrichton Change `WorkProduct::saved_files` to an `Option`. Because there is at most one file. r? @bjorn3
…hewjasper Add doc comment for `rustc_middle::mir::mono::Linkage`
|
@bors r+ p=6 rollup=never |
|
📌 Commit 5d5eeee has been approved by |
|
⌛ Testing commit 5d5eeee with merge f44e75dc2e5ed4c5992fe79804798b8b69d885c7... |
|
💔 Test failed - checks-actions |
|
@bors retry |
|
⌛ Testing commit 5d5eeee with merge c82c48a5570517799d56e3d6c5da40a15e12a57d... |
|
💔 Test failed - checks-actions |
Successful merges:
prefixshould not be mutable. #71525 (prefixshould not be mutable.)WorkProduct::saved_filesto anOption. #72126 (ChangeWorkProduct::saved_filesto anOption.)rustc_middle::mir::mono::Linkage#72138 (Add doc comment forrustc_middle::mir::mono::Linkage)Failed merges:
r? @ghost