Skip to content

rustc: use IndexVec<DefIndex, T> instead of Vec<T>. - #65825

Merged
bors merged 1 commit into
rust-lang:masterfrom
eddyb:def-index-vec
Oct 29, 2019
Merged

rustc: use IndexVec<DefIndex, T> instead of Vec<T>.#65825
bors merged 1 commit into
rust-lang:masterfrom
eddyb:def-index-vec

Conversation

@eddyb

Copy link
Copy Markdown
Contributor

Now that DefIndex is a proper index type, we can do that.
There was also an unnecessary Option I removed, I wonder if that has perf implications.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @zackmdavis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 25, 2019
@eddyb

Copy link
Copy Markdown
ContributorAuthor

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion

@bors

bors commented Oct 25, 2019

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 70eb4bf6cd8eb56b8dfc22d767007b67a5979b24 with merge 76530884546a7aa7bf406b7af7e07c6225197ec0...

@bors

bors commented Oct 25, 2019

Copy link
Copy Markdown
Collaborator

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

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued 76530884546a7aa7bf406b7af7e07c6225197ec0 with parent 23f890f, future comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit 76530884546a7aa7bf406b7af7e07c6225197ec0, comparison URL.

@varkor

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Oct 26, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 70eb4bf6cd8eb56b8dfc22d767007b67a5979b24 has been approved by varkor

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 26, 2019
@CentrilCentril mentioned this pull request Oct 26, 2019
bors added a commit that referenced this pull request Oct 26, 2019
Rollup of 8 pull requests
Successful merges:
- #65743 (rustc_typeck: don't record direct callees in generator_interior.)
- #65761 (libsyntax: Enhance documentation of the AST module)
- #65772 (Remove the last remaining READMEs)
- #65773 (Increase spacing for suggestions in diagnostics)
- #65791 (Adding doc on keyword continue)
- #65824 (rustc: make DefPathData (and friends) Copy (now that it uses Symbol).)
- #65828 (Derive Eq and Hash for SourceInfo again)
- #65842 (Add more information on rustdoc search)
Failed merges:
- #65825 (rustc: use IndexVec<DefIndex, T> instead of Vec<T>.)
r? @ghost
@bors

This comment has been minimized.

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 26, 2019
@eddyb

Copy link
Copy Markdown
ContributorAuthor

@bors r=varkor

@bors

bors commented Oct 28, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit cc575a6 has been approved by varkor

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 28, 2019
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Oct 28, 2019
rustc: use IndexVec<DefIndex, T> instead of Vec<T>.
Now that `DefIndex` is a proper index type, we can do that.
There was also an unnecessary `Option` I removed, I wonder if that has perf implications.
@JohnTitorJohnTitor mentioned this pull request Oct 28, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 28, 2019
rustc: use IndexVec<DefIndex, T> instead of Vec<T>.
Now that `DefIndex` is a proper index type, we can do that.
There was also an unnecessary `Option` I removed, I wonder if that has perf implications.
@CentrilCentril mentioned this pull request Oct 28, 2019
bors added a commit that referenced this pull request Oct 28, 2019
Rollup of 9 pull requests
Successful merges:
- #65563 (Add long error explanation for E0587)
- #65640 (Use heuristics to recover parsing of missing `;`)
- #65643 (Correct handling of type flags with `ConstValue::Placeholder`)
- #65825 (rustc: use IndexVec<DefIndex, T> instead of Vec<T>.)
- #65858 (suggest `const_in_array_repeat_expression` flag)
- #65877 (doc: introduce `once` in `iter::chain` document)
- #65887 (doc: mention `get(_mut)` in Vec)
- #65891 (self-profiling: Record something more useful for crate metadata generation event.)
- #65893 (Output previous stable error messaging when using stable build.)
Failed merges:
r? @ghost
@bors
bors merged commit cc575a6 into rust-lang:masterOct 29, 2019
@eddyb
eddyb deleted the def-index-vec branch October 29, 2019 04:39
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.

6 participants

@eddyb@rust-highfive@rust-timer@bors@varkor@zackmdavis