Skip to content

Rollup of 6 pull requests - #64535

Merged
bors merged 25 commits into
rust-lang:masterfrom
Centril:rollup-wiyxagi
Sep 17, 2019
Merged

Rollup of 6 pull requests#64535
bors merged 25 commits into
rust-lang:masterfrom
Centril:rollup-wiyxagi

Conversation

@Centril

Copy link
Copy Markdown
Contributor

Successful merges:

Failed merges:

r? @ghost

alexcrichtonand 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
Copy Markdown
ContributorAuthor

@bors r+ p=6 rollup=never

@bors

bors commented Sep 17, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit a1fd9ba has been approved by Centril

@borsbors 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

bors commented Sep 17, 2019

Copy link
Copy Markdown
Collaborator

⌛ 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

bors commented Sep 17, 2019

Copy link
Copy Markdown
Collaborator

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

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

7 participants

@Centril@bors@alexcrichton@mark-i-m@nnethercote@estebank@taiki-e