Skip to content

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

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 1 commit into from
Oct 19, 2019

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Oct 18, 2019

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
Member Author

eddyb commented Oct 18, 2019

@bors try

@bors
Copy link
Collaborator

bors commented Oct 18, 2019

⌛ 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
Member Author

eddyb commented Oct 18, 2019

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

@bors
Copy link
Collaborator

bors commented Oct 18, 2019

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

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

@rust-timer build ce12120dcef3c0c5d02f2ee8406e58431034487c

@rust-timer
Copy link
Collaborator

Queued ce12120dcef3c0c5d02f2ee8406e58431034487c with parent fa0f7d0, future comparison URL.

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

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
Collaborator

Finished benchmarking try commit ce12120dcef3c0c5d02f2ee8406e58431034487c, comparison URL.

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

@bors r=nikomatsakis

@bors
Copy link
Collaborator

bors commented Oct 18, 2019

📌 Commit cd9e444 has been approved by nikomatsakis

@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 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.
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:master Oct 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
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.

5 participants