Skip to content

Remove unnecessary dummy span checks - #56221

Merged
bors merged 4 commits into
rust-lang:masterfrom
estebank:remove-dummy-checks
Jan 22, 2019
Merged

Remove unnecessary dummy span checks#56221
bors merged 4 commits into
rust-lang:masterfrom
estebank:remove-dummy-checks

Conversation

@estebank

Copy link
Copy Markdown
Contributor

The emitter already verifies wether a given span note or span label
can be emitted to the output. If it can't, because it is a dummy
span, it will be either elided for labels or emitted as an unspanned
note/help when applicable.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @varkor

(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 Nov 25, 2018
@estebank

Copy link
Copy Markdown
ContributorAuthor

CC #55669

@estebankestebank changed the title Remove unnecessary dummy span checksWIP Remove unnecessary dummy span checksNov 25, 2018
@rust-highfive

This comment has been minimized.

@bors

This comment has been minimized.

@TimNN

TimNN commented Dec 4, 2018

Copy link
Copy Markdown
Contributor

Ping from triage @varkor: This PR requires your review.

Ping form triage @estebank: It looks like your PR failed on travis and needs a rebase.

@varkor

Copy link
Copy Markdown
Contributor

Sorry, I was putting off looking at this because I saw it was marked as "WIP". Is this ready to review now?

@estebank

Copy link
Copy Markdown
ContributorAuthor

I'll come back to this soon. I need to add some code to special case the emitter so the notes appear indented instead as left aligned when span == DUMMY_SP.

@varkorvarkor 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-review Status: Awaiting review from the assignee but also interested parties. labels Jan 1, 2019
@stokhos

Copy link
Copy Markdown

Ping from triage @estebank Have you been able to make any progress on this

The emitter already verifies wether a given span note or span label
can be emitted to the output. If it can't, because it is a dummy
span, it will be either elided for labels or emitted as an unspanned
note/help when applicable.
@estebankestebank changed the title WIP Remove unnecessary dummy span checksRemove unnecessary dummy span checksJan 20, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor

@stokhos completed

@varkor ready for review

@estebankestebank added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 20, 2019
Comment threadsrc/libsyntax_pos/lib.rs Outdated
Comment threadsrc/libsyntax_pos/lib.rs Outdated
Comment threadsrc/libsyntax_pos/lib.rs Outdated

@varkorvarkor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

varkorand others added 2 commits January 21, 2019 15:53
Co-Authored-By: estebank <estebank@users.noreply.github.com>
Co-Authored-By: estebank <estebank@users.noreply.github.com>
@estebank

Copy link
Copy Markdown
ContributorAuthor

@bors r=varkor

@bors

bors commented Jan 21, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit f077990 has been approved by varkor

@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 Jan 21, 2019
@bors

bors commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f077990 with merge 72754e875b5e5ce1b16709e3621b5547432dc5ab...

@bors

bors commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-travis

@rust-highfive

Copy link
Copy Markdown
Contributor

The job x86_64-apple of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
travis_fold:start:before_install.1
travis_time:start:267d892f
$ pip install --user awscli; export PATH=$PATH:$HOME/.local/bin:$HOME/Library/Python/2.7/bin/
Collecting awscli
Downloading https://files.pythonhosted.org/packages/04/be/6529423f80959e3c9ce05d1425e4237e3c3a01bb4b8a83061ae57ddfa5ab/awscli-1.16.93-py2.py3-none-any.whl (1.4MB)
Downloading https://files.pythonhosted.org/packages/50/09/c53398e0005b11f7ffb27b7aa720c617aba53be4fb4f4f3f06b9b5c60f28/docutils-0.14-py2-none-any.whl (543kB)
Collecting rsa<=3.5.0,>=3.1.2 (from awscli)
Downloading https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl (46kB)
Collecting colorama<=0.3.9,>=0.2.5 (from awscli)
---
[00:03:22] Compiling serde_derive v1.0.81
[00:03:24] Compiling toml v0.4.10
[00:03:24] Compiling serde_json v1.0.33
[00:03:35] Compiling bootstrap v0.0.0 (/Users/travis/build/rust-lang/rust/src/bootstrap)
No output has been received in the last 30m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 22, 2019
@varkor

Copy link
Copy Markdown
Contributor

@bors retry

@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 Jan 22, 2019
@bors

bors commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f077990 with merge 76c87a1...

bors added a commit that referenced this pull request Jan 22, 2019
Remove unnecessary dummy span checks
The emitter already verifies wether a given span note or span label
can be emitted to the output. If it can't, because it is a dummy
span, it will be either elided for labels or emitted as an unspanned
note/help when applicable.
@bors

bors commented Jan 22, 2019

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-travis, status-appveyor
Approved by: varkor
Pushing 76c87a1 to master...

@bors
bors merged commit f077990 into rust-lang:masterJan 22, 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.

7 participants

@estebank@rust-highfive@bors@TimNN@varkor@stokhos@petrochenkov