4

more clippy::perf fixes by matthiaskrgr · Pull Request #101391 · rust-lang/rust...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/101391
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

more clippy::perf fixes #101391

Conversation

Member

@matthiaskrgr matthiaskrgr commented 5 days ago

No description provided.

All reactions

Collaborator

rust-highfive commented 5 days ago

r? @oli-obk

(rust-highfive has picked a reviewer for you, use r? to override)

rustbot

added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

labels

5 days ago

rust-highfive

added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label

5 days ago

.collect::<Vec<_>>();

for (def_id, encode_const, encode_opt) in keys_and_jobs.into_iter() {

let keys_and_jobs = tcx.mir_keys(()).iter().filter_map(|&def_id| {

let (encode_const, encode_opt) = should_encode_mir(tcx, def_id);

if encode_const || encode_opt { Some((def_id, encode_const, encode_opt)) } else { None }

});

for (def_id, encode_const, encode_opt) in keys_and_jobs {

this one gets rid of that collecton line 1392, rest is reformatting

All reactions

Contributor

oli-obk commented 4 days ago

@bors r+

Contributor

bors commented 4 days ago

pushpin Commit 6f47265 has been approved by oli-obk

It is now in the queue for this repository.

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

4 days ago

bors

merged commit e4534fe into

rust-lang:master

3 days ago

10 checks passed

rustbot

added this to the 1.65.0 milestone

3 days ago

rust-timer

added a commit to rust-lang-ci/rust that referenced this issue

3 days ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

oli-obk

Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects

None yet

Milestone

1.65.0

Development

Successfully merging this pull request may close these issues.

None yet

5 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK