Skip to content
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

Rollup of 6 pull requests #64535

Merged
merged 25 commits into from
Sep 17, 2019
Merged

Rollup of 6 pull requests #64535

merged 25 commits into from
Sep 17, 2019

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Sep 17, 2019

Successful merges:

Failed merges:

r? @ghost

alexcrichton and others added 25 commits September 11, 2019 06:55
Brings in a few minor security fixes to the distributed Cargo/etc.
- Create ErrorReportingCtx and ErrorConstraintInfo, vasting reducing the
  number of arguments passed around everywhere in the error reporting code
- Create RegionErrorNamingCtx, making a given lifetime have consistent
  numbering thoughout all error messages for that MIR def.
- Make the error reporting code return the DiagnosticBuilder rather than
  directly buffer the Diagnostic. This makes it easier to modify the
  diagnostic later, e.g. to add suggestions.
Those with type `usize` are now called `i`, those with type `NodeIndex`
are called `index`.
This commit removes the custom index implementation of `NodeIndex`,
which probably predates `newtype_index!`.

As well as eliminating code, it improves the debugging experience,
because the custom implementation had the property of being incremented
by 1 (so it could use `NonZeroU32`), which was incredibly confusing if
you didn't expect it.

For some reason, I also had to remove an `unsafe` block marker from
`from_u32_unchecked()` that the compiler said was now unnecessary.
These refer to code that no longer exists.
This makes the code a little faster, presumably because bounds checks
aren't needed on `nodes` accesses. It requires making `scratch` a
`RefCell`, which is not unreasonable.
It's more concise, more idiomatic, and measurably faster.
…-Simulacrum

Update bundled OpenSSL to 1.1.1d

Brings in a few minor security fixes to the distributed Cargo/etc.
Various refactorings to clean up nll diagnostics

- Create ErrorReportingCtx and ErrorConstraintInfo, vasting reducing the
  number of arguments passed around everywhere in the error reporting code
- Create RegionErrorNamingCtx, making a given lifetime have consistent
  numbering thoughout all error messages for that MIR def.
- Make the error reporting code return the DiagnosticBuilder rather than
  directly buffer the Diagnostic. This makes it easier to modify the
  diagnostic later, e.g. to add suggestions.

r? @estebank

Split out from rust-lang#58281
…ikomatsakis

Various `ObligationForest` improvements

These commits make the code both nicer and faster.

r? @nikomatsakis
Use shorthand syntax in the self parameter of methods of Pin
@Centril
Copy link
Contributor Author

Centril commented Sep 17, 2019

@bors r+ p=6 rollup=never

@bors
Copy link
Collaborator

bors commented Sep 17, 2019

📌 Commit a1fd9ba 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 Sep 17, 2019
@bors
Copy link
Collaborator

bors commented Sep 17, 2019

⌛ Testing commit a1fd9ba with merge 5670d04...

bors added a commit that referenced this pull request Sep 17, 2019
Rollup of 6 pull requests

Successful merges:

 - #64085 (Tweak unsatisfied HRTB errors)
 - #64380 (Update bundled OpenSSL to 1.1.1d)
 - #64416 (Various refactorings to clean up nll diagnostics)
 - #64500 (Various `ObligationForest` improvements)
 - #64530 (Elide lifetimes in `Pin<&(mut) Self>`)
 - #64531 (Use shorthand syntax in the self parameter of methods of Pin)

Failed merges:

r? @ghost
@bors
Copy link
Collaborator

bors commented Sep 17, 2019

☀️ Test successful - checks-azure
Approved by: Centril
Pushing 5670d04 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 17, 2019
@bors bors merged commit a1fd9ba into rust-lang:master Sep 17, 2019
@Centril Centril deleted the rollup-wiyxagi branch September 17, 2019 05:26
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
# 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. rollup A PR which is a rollup 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.

7 participants