Skip to content

Avoiding unnecesary allocations at rustc_errors - #76846

Merged
bors merged 2 commits into
rust-lang:masterfrom
zzau13:master
Sep 21, 2020
Merged

Avoiding unnecesary allocations at rustc_errors#76846
bors merged 2 commits into
rust-lang:masterfrom
zzau13:master

Conversation

@zzau13

Copy link
Copy Markdown
Contributor

Simplify the code avoiding allocations with easy alternative

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @davidtwco

(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 Sep 17, 2020
@zzau13zzau13 changed the title Avoiding unnecesary allocations at rustc_errors/emitterAvoiding unnecesary allocations at rustc_errorsSep 17, 2020
@jyn514jyn514 added C-cleanup Category: PRs that clean code up or issues documenting cleanup. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 17, 2020
Comment threadcompiler/rustc_errors/src/lib.rs Outdated

@davidtwcodavidtwco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@davidtwco

Copy link
Copy Markdown
Member

Could you squash the last commit that changes code style?

@zzau13

zzau13 commented Sep 18, 2020

Copy link
Copy Markdown
ContributorAuthor

Could you squash the last commit that changes code style?

Done,

Thanks for your time!!

@davidtwco

Copy link
Copy Markdown
Member

Thanks for the contribution!

@bors r+

@bors

bors commented Sep 18, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 28cfa97 has been approved by davidtwco

@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 Sep 18, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Avoiding unnecesary allocations at rustc_errors
Simplify the code avoiding allocations with easy alternative
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Avoiding unnecesary allocations at rustc_errors
Simplify the code avoiding allocations with easy alternative
This was referenced Sep 19, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Avoiding unnecesary allocations at rustc_errors
Simplify the code avoiding allocations with easy alternative
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 21, 2020
Avoiding unnecesary allocations at rustc_errors
Simplify the code avoiding allocations with easy alternative
@RalfJungRalfJung mentioned this pull request Sep 21, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 21, 2020
Rollup of 13 pull requests
Successful merges:
- rust-lang#76135 (Stabilize some Option methods as const)
- rust-lang#76628 (Add sample defaults for config.toml )
- rust-lang#76846 (Avoiding unnecesary allocations at rustc_errors)
- rust-lang#76867 (Use intra-doc links in core/src/iter when possible)
- rust-lang#76868 (Finish moving to intra doc links for std::sync)
- rust-lang#76872 (Remove DeclareMethods)
- rust-lang#76936 (Add non-`unsafe` `.get_mut()` for `Unsafecell`)
- rust-lang#76958 (Replace manual as_nanos and as_secs_f64 reimplementations)
- rust-lang#76959 (Replace write_fmt with write!)
- rust-lang#76961 (Add test for issue rust-lang#34634)
- rust-lang#76962 (Use const_cstr macro in consts.rs)
- rust-lang#76963 (Remove unused static_assert macro)
- rust-lang#77000 (update Miri)
Failed merges:
r? `@ghost`
@bors
bors merged commit c2d9af6 into rust-lang:masterSep 21, 2020
@rustbotrustbot added this to the 1.48.0 milestone Sep 21, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cleanupCategory: PRs that clean code up or issues documenting cleanup.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@zzau13@rust-highfive@davidtwco@bors@tesuji@jyn514@rustbot