Skip to content

Rollup of 7 pull requests - #89767

Merged
bors merged 16 commits into
rust-lang:masterfrom
GuillaumeGomez:rollup-sczixhk
Oct 11, 2021
Merged

Rollup of 7 pull requests#89767
bors merged 16 commits into
rust-lang:masterfrom
GuillaumeGomez:rollup-sczixhk

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

tlyuand others added 16 commits October 7, 2021 18:41
Shallow clones can cause `git rev-list --merges` to miss merge
commits. Omit it, because the most recent bors commit is
almost always a merge commit.
Exit with an error if we can't find a commit hash for downloading
LLVM or rustc snapshots.
Rustc was incorrectly reading the value of `RUSTC_LOG` as the
environment vairable with the logging configuration, rather than the
logging configuration itself.
bootstrap: don't use `--merges` to look for commit hashes for downloading artifacts
Shallow clones (and possibly worktrees, though I can't seem to reproduce the problem there) can cause `git rev-list --merges` to falsely return no results, even if a merge commit is present. Stop using the `--merges` option when looking for commit hashes that have build artifacts. `--first-parent` and `--author=bors@rust-lang.org` should be sufficient.
Also exit with an error if the configuration asks for artifacts to be downloaded and we can't determine an appropriate commit hash to use to download artifacts.
Fixesrust-lang#87890.
r? ``@jyn514``
``@rustbot`` label +A-rustbuild +A-contributor-roadblock
…rs, r=joshtriplett
Add #[must_use] to alloc constructors
Added `#[must_use]`. to the various forms of `new`, `pin`, and `with_capacity` in the `alloc` crate. No extra explanations given as I couldn't think of anything useful to add.
I figure this deserves extra scrutiny compared to the other PRs I've done so far. In particular:
* The 4 `pin`/`pin_in` methods I touched. Are there legitimate use cases for pinning and not using the result? Pinning's a difficult concept I'm not very comfortable with.
* `Box`'s constructors. Do people ever create boxes just for the side effects... allocating or zeroing out memory?
Parent issue: rust-lang#89692
r? ``@joshtriplett``
…ctors, r=joshtriplett
Add #[must_use] to core and std constructors
Parent issue: rust-lang#89692
r? ``@joshtriplett``
Fix RUSTC_LOG handling
Rustc was incorrectly reading the value of `RUSTC_LOG` as the environment vairable with the logging configuration, rather than the logging configuration itself.
…rsions, r=joshtriplett
Add #[must_use] to from_value conversions
I added two methods to the list myself. Clippy did not flag them because they take `mut` args, but neither modifies their argument.
```rust
core::str const unsafe fn from_utf8_unchecked_mut(v: &mut [u8]) -> &mut str;
std::ffi::CString unsafe fn from_raw(ptr: *mut c_char) -> CString;
```
I put a custom note on `from_raw`:
```rust
#[must_use = "call `drop(from_raw(ptr))` if you intend to drop the `CString`"]
pub unsafe fn from_raw(ptr: *mut c_char) -> CString {
```
Parent issue: rust-lang#89692
r? ``@joshtriplett``
…llaumeGomez
Cleanup .item-table CSS
The main table-like element must be `display: table;`
r? `@GuillaumeGomez`
@rustbotrustbot added the rollup A PR which is a rollup label Oct 11, 2021
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

@bors: r+ p=7 rollup=never

@bors

bors commented Oct 11, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit 913b1de has been approved by GuillaumeGomez

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 11, 2021
@bors

bors commented Oct 11, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 913b1de with merge 1067e2c...

@bors

bors commented Oct 11, 2021

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: GuillaumeGomez
Pushing 1067e2c to master...

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Oct 11, 2021
@bors
bors merged commit 1067e2c into rust-lang:masterOct 11, 2021
@rustbotrustbot added this to the 1.57.0 milestone Oct 11, 2021
@GuillaumeGomez
GuillaumeGomez deleted the rollup-sczixhk branch October 11, 2021 17:43
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (1067e2c): comparison url.

Summary: This benchmark run did not return any relevant changes.

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

@rustbot label: -perf-regression

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.rollupA PR which is a rollupS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@GuillaumeGomez@bors@rust-timer@rustbot@tlyu@jkugelman@matthewjasper@lnicola@dns2utf8