Skip to content

Remove needless indirection through Rc - #62983

Merged
bors merged 1 commit into
rust-lang:masterfrom
Mark-Simulacrum:remove-needless-rc
Jul 26, 2019
Merged

Remove needless indirection through Rc#62983
bors merged 1 commit into
rust-lang:masterfrom
Mark-Simulacrum:remove-needless-rc

Conversation

@Mark-Simulacrum

@Mark-SimulacrumMark-Simulacrum commented Jul 25, 2019

Copy link
Copy Markdown
Member

NamedMatch is already cheap to clone due to Lrc's inside.

NamedMatch is already cheap to clone due to Lrc's inside.
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2019
@Mark-Simulacrum

Copy link
Copy Markdown
MemberAuthor

Since this may have performance implications, let's gather performance data:

@bors try

@bors

bors commented Jul 25, 2019

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 0e022f8 with merge 126d5c7...

bors added a commit that referenced this pull request Jul 25, 2019
Remove needless indirection through Rc
NamedMatch is already cheap to clone due to Lrc's inside.
@bors

bors commented Jul 25, 2019

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-azure
Build commit: 126d5c7

@Mark-Simulacrum

Copy link
Copy Markdown
MemberAuthor

@rust-timer build 126d5c7

@rust-timer

Copy link
Copy Markdown
Collaborator

Success: Queued 126d5c7 with parent eedf6ce, comparison URL.

@petrochenkov

Copy link
Copy Markdown
Contributor

r=me when perf is ready

@petrochenkovpetrochenkov added S-waiting-on-perf Status: Waiting on a perf run to be completed. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 25, 2019
@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit 126d5c7, comparison URL.

@Mark-Simulacrum

Copy link
Copy Markdown
MemberAuthor

Perf looks like just noise as I expected, since this isn't really removing an allocation from the hot path and Rc is very cheap.

@bors r=petrochenkov rollup

@bors

bors commented Jul 25, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 0e022f8 has been approved by petrochenkov

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jul 25, 2019
@Mark-SimulacrumMark-Simulacrum removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 25, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 26, 2019
… r=petrochenkov
Remove needless indirection through Rc
NamedMatch is already cheap to clone due to Lrc's inside.
@CentrilCentril mentioned this pull request Jul 26, 2019
bors added a commit that referenced this pull request Jul 26, 2019
Rollup of 14 pull requests
Successful merges:
- #62084 (allow clippy::unreadable_literal in unicode tables)
- #62421 (Introduce `as_deref` to Option)
- #62692 (rustc: precompute the largest Niche and store it in LayoutDetails.)
- #62801 (Remove support for -Zlower-128bit-ops)
- #62828 (Remove vector fadd/fmul reduction workarounds)
- #62862 (code cleanup)
- #62897 (Attempt to fix backtrace tests on i686-msvc)
- #62904 (Disable d32 on armv6 hf targets)
- #62907 (Initialize the MSP430 AsmParser)
- #62956 (Implement slow-path for FirstSets::first)
- #62963 (Allow lexer to recover from some homoglyphs)
- #62970 (ci: gate toolstate repo pushes on the TOOLSTATE_PUBLISH envvar)
- #62983 (Remove needless indirection through Rc)
- #62985 (librustc_errors: Support ui-testing flag in annotate-snippet emitter)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Jul 26, 2019
… r=petrochenkov
Remove needless indirection through Rc
NamedMatch is already cheap to clone due to Lrc's inside.
@CentrilCentril mentioned this pull request Jul 26, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 26, 2019
… r=petrochenkov
Remove needless indirection through Rc
NamedMatch is already cheap to clone due to Lrc's inside.
@CentrilCentril mentioned this pull request Jul 26, 2019
bors added a commit that referenced this pull request Jul 26, 2019
Rollup of 22 pull requests
Successful merges:
- #62084 (allow clippy::unreadable_literal in unicode tables)
- #62120 (Add missing type links in documentation)
- #62310 (Add missing doc links in boxed module)
- #62421 (Introduce `as_deref` to Option)
- #62583 (Implement Unpin for all raw pointers)
- #62692 (rustc: precompute the largest Niche and store it in LayoutDetails.)
- #62801 (Remove support for -Zlower-128bit-ops)
- #62828 (Remove vector fadd/fmul reduction workarounds)
- #62862 (code cleanup)
- #62904 (Disable d32 on armv6 hf targets)
- #62907 (Initialize the MSP430 AsmParser)
- #62956 (Implement slow-path for FirstSets::first)
- #62963 (Allow lexer to recover from some homoglyphs)
- #62964 (clarify and unify some type test names)
- #62970 (ci: gate toolstate repo pushes on the TOOLSTATE_PUBLISH envvar)
- #62980 (std: Add more accessors for `Metadata` on Windows)
- #62983 (Remove needless indirection through Rc)
- #62985 (librustc_errors: Support ui-testing flag in annotate-snippet emitter)
- #63002 (error_index_generator should output stdout/stderr when it panics.)
- #63004 (Add test for issue-54062)
- #63007 (ci: debug network failures while downloading awscli from PyPI)
- #63009 (Remove redundant `mut` from variable declaration.)
Failed merges:
r? @ghost
@bors
bors merged commit 0e022f8 into rust-lang:masterJul 26, 2019
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.

5 participants

@Mark-Simulacrum@bors@rust-timer@petrochenkov@rust-highfive