Skip to content

Rollup of 5 pull requests #71664

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 10 commits into from
Apr 29, 2020
Merged

Rollup of 5 pull requests #71664

merged 10 commits into from
Apr 29, 2020

Conversation

Dylan-DPC-zz
Copy link

Alexendoo and others added 10 commits April 18, 2020 18:48
Address the diagnostics part of rust-lang#70844.

```
error[E0597]: `counter` does not live long enough
  --> $DIR/issue-54556-niconii.rs:22:20
   |
LL |     if let Ok(_) = counter.lock() { }
   |                    ^^^^^^^-------
   |                    |
   |                    borrowed value does not live long enough
   |                    a temporary with access to the borrow is created here ...
...
LL | }
   | -
   | |
   | `counter` dropped here while still borrowed
   | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::result::Result<MutexGuard<'_>, ()>`
   |
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
   |
LL |     if let Ok(_) = counter.lock() { };
   |                                      ^
```
Suggest `;` or assignment to drop borrows in tail exprs

Address the diagnostics part of rust-lang#70844.

```
error[E0597]: `counter` does not live long enough
  --> $DIR/issue-54556-niconii.rs:22:20
   |
LL |     if let Ok(_) = counter.lock() { }
   |                    ^^^^^^^-------
   |                    |
   |                    borrowed value does not live long enough
   |                    a temporary with access to the borrow is created here ...
...
LL | }
   | -
   | |
   | `counter` dropped here while still borrowed
   | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `std::result::Result<MutexGuard<'_>, ()>`
   |
help: consider adding semicolon after the expression so its temporaries are dropped sooner, before the local variables declared by the block are dropped
   |
LL |     if let Ok(_) = counter.lock() { };
   |                                      ^
```
…, r=Dylan-DPC

Change wording on read_vectored docs

Closes rust-lang#70154

I'm happy to work with others to make the wording on this more clear. I think what I have is an improvement but may not be the final wording.
Update link to unstable book for llvm_asm macro
Add rust-lang#24949 assoc constant static recursion test

Closes rust-lang#24949

Forced tidy fixes
@Dylan-DPC-zz
Copy link
Author

@bors r+ rollup=never

@bors
Copy link
Collaborator

bors commented Apr 29, 2020

📌 Commit 878e928 has been approved by Dylan-DPC

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Apr 29, 2020
@Dylan-DPC-zz
Copy link
Author

@bors p=5

@bors
Copy link
Collaborator

bors commented Apr 29, 2020

⌛ Testing commit 878e928 with merge e91aebc...

@bors
Copy link
Collaborator

bors commented Apr 29, 2020

☀️ Test successful - checks-azure
Approved by: Dylan-DPC
Pushing e91aebc to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Apr 29, 2020
@bors bors merged commit e91aebc into rust-lang:master Apr 29, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: 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.

8 participants