Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: add Spans to inferred_outlives_of predicates. #65541

Merged
merged 2 commits into from
Oct 27, 2019

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Oct 18, 2019

This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate Spans much atm).

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

@bors try

bors added a commit that referenced this pull request Oct 18, 2019
rustc: add `Span`s to `inferred_outlives_of` predicates.

*Based on #65535.*

This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@bors
Copy link
Contributor

bors commented Oct 18, 2019

⌛ Trying commit 8dced11 with merge 0fc2031...

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

cc @michaelwoerister @nikomatsakis This is post-#59953 / pre-#59789, you may want to take a look.

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

@bors rollup=never (may cause perf regressions)

@bors
Copy link
Contributor

bors commented Oct 18, 2019

☀️ Try build successful - checks-azure
Build commit: 0fc2031 (0fc20313c717a5cc3751db334f6e36a9566c48d5)

@eddyb
Copy link
Member Author

eddyb commented Oct 18, 2019

@rust-timer build 0fc2031

@rust-timer
Copy link
Collaborator

Queued 0fc2031 with parent fa0f7d0, future comparison URL.

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

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

r=me modulo fixmes, perf

src/librustc_typeck/outlives/mod.rs Outdated Show resolved Hide resolved
src/librustc_typeck/outlives/mod.rs Outdated Show resolved Hide resolved
@rust-timer
Copy link
Collaborator

Finished benchmarking try commit 0fc2031, comparison URL.

@eddyb
Copy link
Member Author

eddyb commented Oct 19, 2019

@bors try

@bors
Copy link
Contributor

bors commented Oct 19, 2019

⌛ Trying commit 2e387e2 with merge c9b528f...

bors added a commit that referenced this pull request Oct 19, 2019
rustc: add `Span`s to `inferred_outlives_of` predicates.

*Based on #65535.*

This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@bors
Copy link
Contributor

bors commented Oct 19, 2019

☀️ Try build successful - checks-azure
Build commit: c9b528f (c9b528fdd42d4e28fcdbcce20b7cd068f4aa2448)

@eddyb
Copy link
Member Author

eddyb commented Oct 19, 2019

@rust-timer build c9b528f

@rust-timer
Copy link
Collaborator

Queued c9b528f with parent 518deda, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit c9b528f, comparison URL.

// it's not local to the crate the Span is found in.
if self.source_file_cache.is_imported() {
return TAG_INVALID_SPAN.encode(self)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

cc @petrochenkov I had to add this because decoding assumes Spans are always from each crate's own files, not some transitive dependency.

I wonder if this should be an assert instead - I could enforce that the Spans computed for inferred_outlives_of are always from the definition of the type, not some other type (which is how the last commit in this PR triggered the problem).

@JohnTitor JohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 20, 2019
@davidtwco
Copy link
Member

r? @nikomatsakis (already left a review)

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Oct 25, 2019

📌 Commit 1ca8da4 has been approved by nikomatsakis

@bors 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 Oct 25, 2019
@bors
Copy link
Contributor

bors commented Oct 26, 2019

⌛ Testing commit 1ca8da4 with merge e37348e245cd7314c1edb733bd9af6ffd267e610...

@rust-highfive
Copy link
Collaborator

Your PR failed (pretty log, 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.
2019-10-26T04:14:04.5584938Z Chocolatey installed 0/1 packages. 1 packages failed.
2019-10-26T04:14:04.5585316Z  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-10-26T04:14:04.5589116Z 
2019-10-26T04:14:04.5602542Z Failures
2019-10-26T04:14:04.5602862Z  - msys2 (exited 1) - msys2 not installed. An error occurred during installation:
2019-10-26T04:14:04.5603126Z  The remote server returned an error: (503) Server Unavailable. Service Unavailable
2019-10-26T04:14:04.5617639Z Enjoy using Chocolatey? Explore more amazing features to take your
2019-10-26T04:14:04.5617823Z experience to the next level at
2019-10-26T04:14:04.5618001Z  https://chocolatey.org/compare
2019-10-26T04:14:05.0272762Z 
2019-10-26T04:14:05.0272762Z 
2019-10-26T04:14:05.0351241Z ##[error]Bash exited with code '1'.
2019-10-26T04:14:05.0540548Z ##[section]Starting: Upload CPU usage statistics
2019-10-26T04:14:05.0650305Z ==============================================================================
2019-10-26T04:14:05.0650411Z Task         : Bash
2019-10-26T04:14:05.0650488Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-10-26T04:14:05.3419689Z ========================== Starting Command Output ===========================
2019-10-26T04:14:05.3428074Z [command]"C:\Program Files\Git\bin\bash.exe" --noprofile --norc /d/a/_temp/1d371b5c-a6a6-484c-a73b-dc07bef31627.sh
2019-10-26T04:14:05.3875543Z /d/a/_temp/1d371b5c-a6a6-484c-a73b-dc07bef31627.sh: line 1: aws: command not found
2019-10-26T04:14:05.3904153Z 
2019-10-26T04:14:05.3929290Z ##[error]Bash exited with code '127'.
2019-10-26T04:14:05.3998150Z ##[section]Starting: Checkout
2019-10-26T04:14:05.4091391Z ==============================================================================
2019-10-26T04:14:05.4091484Z Task         : Get sources
2019-10-26T04:14:05.4091749Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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)

@bors
Copy link
Contributor

bors commented Oct 26, 2019

💔 Test failed - checks-azure

@bors bors 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 Oct 26, 2019
@eddyb
Copy link
Member Author

eddyb commented Oct 26, 2019

@bors retry (spurious network error)

@bors 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 Oct 26, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 26, 2019
…nikomatsakis

rustc: add `Span`s to `inferred_outlives_of` predicates.

This would simplify rust-lang#59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
Centril added a commit to Centril/rust that referenced this pull request Oct 26, 2019
…nikomatsakis

rustc: add `Span`s to `inferred_outlives_of` predicates.

This would simplify rust-lang#59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@bors
Copy link
Contributor

bors commented Oct 27, 2019

⌛ Testing commit 1ca8da4 with merge 0f677c6...

bors added a commit that referenced this pull request Oct 27, 2019
rustc: add `Span`s to `inferred_outlives_of` predicates.

This would simplify #59789, and I suspect it has some potential in diagnostics (although we don't seem to use the predicate `Span`s much atm).
@bors
Copy link
Contributor

bors commented Oct 27, 2019

☀️ Test successful - checks-azure
Approved by: nikomatsakis
Pushing 0f677c6 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Oct 27, 2019
@bors bors merged commit 1ca8da4 into rust-lang:master Oct 27, 2019
@eddyb eddyb deleted the spanned-inferred-outlives branch October 27, 2019 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: 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