Skip to content

Rollup of 5 pull requests #65604

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

Closed
wants to merge 11 commits into from
Closed

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Oct 19, 2019

Successful merges:

Failed merges:

r? @ghost

tesuji and others added 11 commits October 2, 2019 12:22
Will reduce confusion like in https://users.rust-lang.org/t/help-understanding-the-ref-t-syntax/33779 since match ergonomics means you (almost) never have to say `ref` anymore!
Inline `ptr::null(_mut)` even in debug builds

I think we should treat `ptr::null(_mut)` as a constant. As It may help reduce code size
in debug build.
See godbolt link: https://godbolt.org/z/b9YMtD
Avoid realloc in `CString::new`

If `&[u8]` or `&str` is given, `CString::new` allocates a new `Vec` with the exact capacity, and then `CString::from_vec_unchecked` calls `.reserve_exact(1)` for nul byte. This PR avoids the reallocation by allocationg `len + 1` bytes beforehand. In microbenchmark this PR speeds up `CString::new(&[u8])` by 30%.
add test for calling non-const fn

The good news is that there is an error. But I expected to see [this error](https://github.com/rust-lang/rust/blob/9578272d681c8691ca2ff3f5c4230b491bc1c694/src/librustc_mir/const_eval.rs#L346) surface. @oli-obk any idea why that message is not shown anywhere?

r? @oli-obk
Remove unneeded `ref` from docs

Will reduce confusion like in https://users.rust-lang.org/t/help-understanding-the-ref-t-syntax/33779 since match ergonomics means you (almost) never have to say `ref` anymore!

There might be more like this, but I don't have a checkout on my computer right this second and I'm on slow wifi and GitHub search isn't powerful enough and that's my story.
@Centril
Copy link
Contributor Author

Centril commented Oct 19, 2019

@bors r+ p=5 rollup=never

@bors
Copy link
Collaborator

bors commented Oct 19, 2019

📌 Commit 192f6dc has been approved by Centril

@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 Oct 19, 2019
@bors
Copy link
Collaborator

bors commented Oct 19, 2019

⌛ Testing commit 192f6dc with merge fc18016dba01d62e7c5f611a5839f85cf2162196...

@rust-highfive
Copy link
Contributor

Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-10-19T21:57:12.8404834Z do so (now or later) by using -b with the checkout command again. Example:
2019-10-19T21:57:12.8405310Z 
2019-10-19T21:57:12.8405549Z   git checkout -b <new-branch-name>
2019-10-19T21:57:12.8405807Z 
2019-10-19T21:57:12.8406133Z HEAD is now at fc18016db Auto merge of #65604 - Centril:rollup-bw7ur3d, r=Centril
2019-10-19T21:57:12.8830576Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-10-19T21:57:12.8944763Z ==============================================================================
2019-10-19T21:57:12.8944863Z Task         : Bash
2019-10-19T21:57:12.8944961Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-10-19T21:57:45.3261911Z Chocolatey v0.10.15
2019-10-19T21:58:12.0000867Z Installing the following packages:
2019-10-19T21:58:12.0008657Z msys2
2019-10-19T21:58:12.0014571Z By installing you accept licenses for the packages.
2019-10-19T21:58:54.4755375Z Error retrieving packages from source 'https://chocolatey.org/api/v2/':
2019-10-19T21:58:54.4756272Z  Unable to connect to the remote server
2019-10-19T21:58:54.4766211Z msys2 not installed. The package was not found with the source(s) listed.
2019-10-19T21:58:54.4766696Z  Source(s): 'https://chocolatey.org/api/v2/'
2019-10-19T21:58:54.4767583Z  NOTE: When you specify explicit sources, it overrides default sources.
2019-10-19T21:58:54.4767987Z If the package version is a prerelease and you didn't specify `--pre`,
2019-10-19T21:58:54.4768749Z Please see https://chocolatey.org/docs/troubleshooting for more 
2019-10-19T21:58:54.4769091Z  assistance.
2019-10-19T21:58:54.4885893Z 
2019-10-19T21:58:54.4886508Z Chocolatey installed 0/1 packages. 1 packages failed.
2019-10-19T21:58:54.4886508Z Chocolatey installed 0/1 packages. 1 packages failed.
2019-10-19T21:58:54.4886910Z  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-10-19T21:58:54.4891429Z 
2019-10-19T21:58:54.4897441Z Failures
2019-10-19T21:58:54.4905867Z  - msys2 - msys2 not installed. The package was not found with the source(s) listed.
2019-10-19T21:58:54.4906363Z  Source(s): 'https://chocolatey.org/api/v2/'
2019-10-19T21:58:54.4906758Z  NOTE: When you specify explicit sources, it overrides default sources.
2019-10-19T21:58:54.4907116Z If the package version is a prerelease and you didn't specify `--pre`,
2019-10-19T21:58:54.4907974Z Please see https://chocolatey.org/docs/troubleshooting for more 
2019-10-19T21:58:54.4908302Z  assistance.
2019-10-19T21:58:54.8408312Z 
2019-10-19T21:58:54.8408312Z 
2019-10-19T21:58:54.8498656Z ##[error]Bash exited with code '1'.
2019-10-19T21:58:54.8712617Z ##[section]Starting: Upload CPU usage statistics
2019-10-19T21:58:54.8834948Z ==============================================================================
2019-10-19T21:58:54.8835204Z Task         : Bash
2019-10-19T21:58:54.8835294Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-10-19T21:58:55.2086169Z ========================== Starting Command Output ===========================
2019-10-19T21:58:55.2092693Z [command]"C:\Program Files\Git\bin\bash.exe" --noprofile --norc /d/a/_temp/00823e2b-916e-4347-848b-cfde4f0eb1bc.sh
2019-10-19T21:58:55.2585905Z /d/a/_temp/00823e2b-916e-4347-848b-cfde4f0eb1bc.sh: line 1: aws: command not found
2019-10-19T21:58:55.2620385Z 
2019-10-19T21:58:55.2639460Z ##[error]Bash exited with code '127'.
2019-10-19T21:58:55.2718194Z ##[section]Starting: Checkout
2019-10-19T21:58:55.2833603Z ==============================================================================
2019-10-19T21:58:55.2833876Z Task         : Get sources
2019-10-19T21:58:55.2833978Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors
Copy link
Collaborator

bors commented Oct 19, 2019

💔 Test failed - checks-azure

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 19, 2019
@Centril Centril added the rollup A PR which is a rollup label Oct 20, 2019
@Centril Centril closed this Oct 20, 2019
@Centril Centril deleted the rollup-bw7ur3d branch October 20, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants