Skip to content

A handful of random string-related improvements - #54932

Merged
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:a_handful_of_string_improvements
Oct 12, 2018
Merged

A handful of random string-related improvements#54932
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:a_handful_of_string_improvements

Conversation

@ljedrz

Copy link
Copy Markdown
Contributor
  • remove a few allocations in errors/diagnostic
  • make build_helper::gnu_target return Cow<str>

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @alexcrichton

(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 9, 2018
@alexcrichton

Copy link
Copy Markdown
Member

Thanks!

Comment threadsrc/build_helper/lib.rs Outdated

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.

This can just be &str I believe without the need for cow. This isn't ever really hot code anyway

@ljedrzljedrzOct 10, 2018

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Oh yeah, silly me; fixed. The code is not hot for sure, but I don't mind improving it anyway ^^.

@ljedrz
ljedrzforce-pushed the a_handful_of_string_improvements branch from 0821630 to a01a994CompareOctober 10, 2018 08:40
@alexcrichton

Copy link
Copy Markdown
Member

@bors: r+

@bors

bors commented Oct 10, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit a01a994 has been approved by alexcrichton

@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 10, 2018
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Oct 11, 2018
…ents, r=alexcrichton
A handful of random string-related improvements
- remove a few allocations in `errors/diagnostic`
- make `build_helper::gnu_target` return `Cow<str>`
kennytm added a commit to kennytm/rust that referenced this pull request Oct 12, 2018
…ents, r=alexcrichton
A handful of random string-related improvements
- remove a few allocations in `errors/diagnostic`
- make `build_helper::gnu_target` return `Cow<str>`
@kennytmkennytm mentioned this pull request Oct 12, 2018
bors added a commit that referenced this pull request Oct 12, 2018
Rollup of 16 pull requests
Successful merges:
- #54755 (Documents reference equality by address (#54197))
- #54811 (During rustc bootstrap, make default for `optimize` independent of `debug`)
- #54825 (NLL says "borrowed content" instead of more precise "dereference of raw pointer")
- #54860 (Add doc comments about safest way to initialize a vector of zeros)
- #54869 (Fix mobile docs)
- #54891 (Fix tracking issue for Once::is_completed)
- #54913 (doc fix: it's auto traits that make for automatic implementations)
- #54920 (Fix handling of #[must_use] on unit and uninhabited types)
- #54932 (A handful of random string-related improvements)
- #54936 (impl Eq+Hash for TyLayout)
- #54950 (std: Synchronize global allocator on wasm32)
- #54956 ("(using ..." doesn't have the matching ")")
- #54958 (add a macro for static (compile-time) assertions)
- #54967 (Remove incorrect span for second label inner macro invocation)
- #54983 (Fix slice's benchmarks)
- #54989 (Fix spelling in the documentation to htmldocck.py)
Failed merges:
r? @ghost
@bors
bors merged commit a01a994 into rust-lang:masterOct 12, 2018
@ljedrz
ljedrz deleted the a_handful_of_string_improvements branch October 12, 2018 18:02
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.

4 participants

@ljedrz@rust-highfive@alexcrichton@bors