-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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 7 pull requests #76557
Rollup of 7 pull requests #76557
Commits on Sep 8, 2020
-
rustbuild: don't set PYTHON_EXECUTABLE and WITH_POLLY cmake vars sinc…
…e they are no longer supported by llvm CMake Warning: Manually-specified variables were not used by the project: PYTHON_EXECUTABLE WITH_POLLY
Configuration menu - View commit details
-
Copy full SHA for 0065e33 - Browse repository at this point
Copy the full SHA 0065e33View commit details -
Implementation of peer credentials for Unix sockets
The code in `ucred.rs` is based on the work done in PR 13 in the tokio-uds repository on GitHub. Link below for reference: tokio-rs/tokio-uds#13 Credit to Martin Habovštiak (GitHub username Kixunil) and contributors for this work!
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 968dd73 - Browse repository at this point
Copy the full SHA 968dd73View commit details -
Remove use of
MaybeUninit
inucred.rs
We can simply init the struct directly. There is no real need to use uninit memory here.
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for bd88f3f - Browse repository at this point
Copy the full SHA bd88f3fView commit details -
Add basic test for Unix peer credentials
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for a699219 - Browse repository at this point
Copy the full SHA a699219View commit details -
Use
u32::MAX
instead ofu32::max_value
Co-authored-by: lzutao <taolzu@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 55f1c2a - Browse repository at this point
Copy the full SHA 55f1c2aView commit details -
Add pid as an option to UCred struct
Currently, PID will be populated for Linux, and set to None for BSDs.
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 010fd97 - Browse repository at this point
Copy the full SHA 010fd97View commit details -
Move Unix peer credentials tests to their own file
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 410124b - Browse repository at this point
Copy the full SHA 410124bView commit details -
Add documentation to public fields of UCred struct
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 9113ebf - Browse repository at this point
Copy the full SHA 9113ebfView commit details -
Conditionally compile peer credentials feature for supported platforms
Joe Ellis committedSep 8, 2020 Configuration menu - View commit details
-
Copy full SHA for 217bf67 - Browse repository at this point
Copy the full SHA 217bf67View commit details -
Use intra-doc links in
core::ptr
The only link that I did not change is a link to a function on the `pointer` primitive because intra-doc links for the `pointer` primitive don't work yet (see rust-lang#63351).
Configuration menu - View commit details
-
Copy full SHA for 325acef - Browse repository at this point
Copy the full SHA 325acefView commit details
Commits on Sep 9, 2020
-
Many developers use a dark theme with editors and IDEs, but this typically doesn't extend to graphviz output. When I bring up a MIR graphviz document, the white background is strikingly bright. This new option changes the colors used for graphviz output to work better in dark-themed UIs.
Configuration menu - View commit details
-
Copy full SHA for c19b237 - Browse repository at this point
Copy the full SHA c19b237View commit details -
`write` is ambiguous because there's also a macro called `write`. Also removed unnecessary and potentially confusing link to a function in its own docs.
Configuration menu - View commit details
-
Copy full SHA for d24026b - Browse repository at this point
Copy the full SHA d24026bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 10d3f8a - Browse repository at this point
Copy the full SHA 10d3f8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 884a1b4 - Browse repository at this point
Copy the full SHA 884a1b4View commit details -
Also fixed monospace font for d3-graphviz engine
VS code graphviz extensions use d3-graphviz, which supports `Courier` fontname but does not support `monospace`. This caused graphs to render poorly because the text sizes were wrong.
Configuration menu - View commit details
-
Copy full SHA for f7aee33 - Browse repository at this point
Copy the full SHA f7aee33View commit details -
Configuration menu - View commit details
-
Copy full SHA for f42dac0 - Browse repository at this point
Copy the full SHA f42dac0View commit details
Commits on Sep 10, 2020
-
Configuration menu - View commit details
-
Copy full SHA for fdff7de - Browse repository at this point
Copy the full SHA fdff7deView commit details -
Rollup merge of rust-lang#74787 - petrochenkov:rustllvm, r=cuviper
Move `rustllvm` into `compiler/rustc_llvm` The `rustllvm` directory is not self-contained, it contains C++ code built by a build script of the `rustc_llvm` crate which is then linked into that crate. So it makes sense to make `rustllvm` a part of `rustc_llvm` and move it into its directory. I replaced `rustllvm` with more obvious `llvm-wrapper` as the subdirectory name, but something like `llvm-adapter` would work as well, other suggestions are welcome. To make things more confusing, the Rust side of FFI functions defined in `rustllvm` can be found in `rustc_codegen_llvm` rather than in `rustc_llvm`. Perhaps they need to be moved as well, but this PR doesn't do that. The presence of multiple LLVM-related directories in `src` (`llvm-project`, `rustllvm`, `librustc_llvm`, `librustc_codegen_llvm` and their predecessors) historically confused me and made me wonder about their purpose. With this PR we will have LLVM itself (`llvm-project`), a FFI crate (`rustc_llvm`, kind of `llvm-sys`) and a codegen backend crate using LLVM through the FFI crate (`rustc_codegen_llvm`).
Configuration menu - View commit details
-
Copy full SHA for 7074e02 - Browse repository at this point
Copy the full SHA 7074e02View commit details -
Rollup merge of rust-lang#75148 - joechrisellis:master, r=Amanieu
Implementation of peer credentials for Unix sockets The code in `ucred.rs` is based on the work done in [PR 13](tokio-rs/tokio-uds#13) in the tokio-uds repository on GitHub. This commit is effectively a port to the stdlib, so credit to Martin Habovštiak (@Kixunil) and contributors for the meat of this work. 🥇 Happy to make changes as needed. 🙂
Configuration menu - View commit details
-
Copy full SHA for 1d5a5c5 - Browse repository at this point
Copy the full SHA 1d5a5c5View commit details -
Rollup merge of rust-lang#76472 - matthiaskrgr:llvm_cmake_vars, r=Mar…
…k-Simulacrum rustbuild: don't set PYTHON_EXECUTABLE and WITH_POLLY cmake vars since they are no longer supported by llvm This resolves CMake Warning: Manually-specified variables were not used by the project: PYTHON_EXECUTABLE WITH_POLLY
Configuration menu - View commit details
-
Copy full SHA for eaaac83 - Browse repository at this point
Copy the full SHA eaaac83View commit details -
Rollup merge of rust-lang#76497 - camelid:intra-doc-links-for-core-pt…
…r, r=jyn514 Use intra-doc links in `core::ptr` Part of rust-lang#75080. The only link that I did not change is a link to a function on the `pointer` primitive because intra-doc links for the `pointer` primitive don't work yet (see rust-lang#63351). --- @rustbot modify labels: A-intra-doc-links T-doc
Configuration menu - View commit details
-
Copy full SHA for 966fb1c - Browse repository at this point
Copy the full SHA 966fb1cView commit details -
Rollup merge of rust-lang#76500 - richkadel:mir-graphviz-dark, r=tmandry
Add -Zgraphviz_dark_mode and monospace font fix Many developers use a dark theme with editors and IDEs, but this typically doesn't extend to graphviz output. When I bring up a MIR graphviz document, the white background is strikingly bright. This new option changes the colors used for graphviz output to work better in dark-themed UIs. <img width="1305" alt="Screen Shot 2020-09-09 at 3 00 31 PM" src="https://user-images.githubusercontent.com/3827298/92659478-4b9bff00-f2ad-11ea-8894-b40d3a873cb9.png"> Also fixed the monospace font for common graphviz renders (e.g., VS Code extensions), as described in rust-lang#76500 (comment) **Before:** <img width="943" alt="Screen Shot 2020-09-09 at 2 48 44 PM" src="https://user-images.githubusercontent.com/3827298/92658939-47231680-f2ac-11ea-97ac-96727e4dd622.png"> **Now with fix:** <img width="943" alt="Screen Shot 2020-09-09 at 2 49 02 PM" src="https://user-images.githubusercontent.com/3827298/92658959-51451500-f2ac-11ea-9aae-de982d466d6a.png">
Configuration menu - View commit details
-
Copy full SHA for 6e7d47d - Browse repository at this point
Copy the full SHA 6e7d47dView commit details -
Rollup merge of rust-lang#76543 - ssomers:btree_cleanup_4, r=Mark-Sim…
…ulacrum Document btree's unwrap_unchecked rust-lang#74693's second wind
Configuration menu - View commit details
-
Copy full SHA for dd4627a - Browse repository at this point
Copy the full SHA dd4627aView commit details -
Rollup merge of rust-lang#76556 - tmandry:revert-76285, r=tmandry
Revert rust-lang#76285 Fixes rust-lang#76399. Reverting because the issue is P-critical and there are no PRs up to fix it. r? @Mark-Simulacrum cc @matklad @dtolnay
Configuration menu - View commit details
-
Copy full SHA for 2fc404f - Browse repository at this point
Copy the full SHA 2fc404fView commit details