Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Oct 25, 2019

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
Collaborator

r? @zackmdavis

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

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

eddyb commented Oct 25, 2019

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion

@bors
Copy link
Contributor

bors commented Oct 25, 2019

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

@bors
Copy link
Contributor

bors commented Oct 25, 2019

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

@rust-timer
Copy link
Collaborator

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

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 76530884546a7aa7bf406b7af7e07c6225197ec0, comparison URL.

@varkor
Copy link
Member

varkor commented Oct 26, 2019

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Oct 26, 2019

📌 Commit 70eb4bf6cd8eb56b8dfc22d767007b67a5979b24 has been approved by varkor

@bors bors 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
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.

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

eddyb commented Oct 28, 2019

@bors r=varkor

@bors
Copy link
Contributor

bors commented Oct 28, 2019

📌 Commit cc575a6 has been approved by varkor

@bors bors 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.
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.
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:master Oct 29, 2019
@eddyb eddyb deleted the def-index-vec branch October 29, 2019 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

6 participants