Skip to content

rustc: arena-allocate the slice in ty::GenericsPredicate, not the whole struct. - #65535

Merged
bors merged 1 commit into
rust-lang:masterfrom
eddyb:sliced-predicates
Oct 19, 2019
Merged

rustc: arena-allocate the slice in ty::GenericsPredicate, not the whole struct.#65535
bors merged 1 commit into
rust-lang:masterfrom
eddyb:sliced-predicates

Conversation

@eddyb

Copy link
Copy Markdown
Contributor

While rebasing #59789 I noticed we can do this now. However, it doesn't help much without changing inferred_outlives_of to the same type, which I might try next.

@eddyb

Copy link
Copy Markdown
ContributorAuthor

@bors try

@bors

bors commented Oct 18, 2019

Copy link
Copy Markdown
Collaborator

⌛ Trying commit cd9e444 with merge ce12120dcef3c0c5d02f2ee8406e58431034487c...

bors added a commit that referenced this pull request Oct 18, 2019
rustc: add `Span`s to `inferred_outlives_of` predicates.
*Based on #65535.*
This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@eddyb

Copy link
Copy Markdown
ContributorAuthor

cc @michaelwoerister@nikomatsakis This is post-#59953 / pre-#59789, you may want to take a look.

@bors

bors commented Oct 18, 2019

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-azure
Build commit: ce12120dcef3c0c5d02f2ee8406e58431034487c (ce12120dcef3c0c5d02f2ee8406e58431034487c)

@eddyb

Copy link
Copy Markdown
ContributorAuthor

@rust-timer build ce12120dcef3c0c5d02f2ee8406e58431034487c

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued ce12120dcef3c0c5d02f2ee8406e58431034487c with parent fa0f7d0, future comparison URL.

@nikomatsakisnikomatsakis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, but feel free to wait for perf

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit ce12120dcef3c0c5d02f2ee8406e58431034487c, comparison URL.

@eddyb

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis

@bors

bors commented Oct 18, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit cd9e444 has been approved by nikomatsakis

@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 18, 2019
tmandry added a commit to tmandry/rust that referenced this pull request Oct 18, 2019
…akis
rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.
While rebasing rust-lang#59789 I noticed we can do this now. However, it doesn't help much without changing `inferred_outlives_of` to the same type, which I might try next.
@tmandrytmandry mentioned this pull request Oct 18, 2019
bors added a commit that referenced this pull request Oct 19, 2019
Rollup of 19 pull requests
Successful merges:
- #65016 (Always inline `mem::{size_of,align_of}` in debug builds)
- #65197 (Prepare `MutVisitor`s to handle interned projections)
- #65201 (Disable Go and OCaml bindings when building LLVM)
- #65334 (Add long error explanation for E0575)
- #65364 (Collect occurrences of empty blocks for mismatched braces diagnostic)
- #65455 (Avoid unnecessary `TokenTree` to `TokenStream` conversions)
- #65472 (Use a sharded dep node to dep node index map)
- #65480 (Speed up `LexicalResolve::expansion()`)
- #65493 (Add long error explanation for E0584)
- #65496 (properly document panics in div_euclid and rem_euclid)
- #65498 (Plugins deprecation: don’t suggest simply removing the attribute)
- #65508 (add option to ping llvm ice-breakers to triagebot)
- #65511 (save-analysis: Nest tables when processing impl block definitions)
- #65513 (reorder fmt docs for more clarity)
- #65532 (doc: make BitSet intro more short)
- #65535 (rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole struct.)
- #65540 (show up some extra info when t!() fails)
- #65549 (Fix left/right shift typo in wrapping rotate docs)
- #65552 (Clarify diagnostics when using `~` as a unary op)
Failed merges:
- #65390 (Add long error explanation for E0576)
- #65434 (Add long error explanation for E0577)
- #65471 (Add long error explanation for E0578)
r? @ghost
bors added a commit that referenced this pull request Oct 19, 2019
rustc: add `Span`s to `inferred_outlives_of` predicates.
*Based on #65535.*
This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@bors
bors merged commit cd9e444 into rust-lang:masterOct 19, 2019
tesuji added a commit to tesuji/rust-clippy that referenced this pull request Oct 19, 2019
bors added a commit to rust-lang/rust-clippy that referenced this pull request Oct 19, 2019
@eddyb
eddyb deleted the sliced-predicates branch October 19, 2019 06:23
hellow554 pushed a commit to hellow554/rust-clippy that referenced this pull request Oct 21, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-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.

5 participants

@eddyb@bors@rust-timer@nikomatsakis@cramertj