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

Upgrade Chalk #80593

Merged
merged 2 commits into from
Feb 3, 2021
Merged

Upgrade Chalk #80593

merged 2 commits into from
Feb 3, 2021

Conversation

jackh726
Copy link
Member

@jackh726 jackh726 commented Jan 1, 2021

Blocked on rust-lang/chalk#670
Now blocked on rust-lang/chalk#680 and release

In addition to the straight upgrade, I also tried to fix some tests by properly returning variables and max universes in the solution. Unfortunately, this actually triggers the same perf problem that rustc traits code runs into in canonicalizer. Not sure what the root cause of this problem is, or why it's supposed to be solved in chalk.

r? @nikomatsakis

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 1, 2021
@@ -27,7 +27,7 @@ pub fn check(root: &Path, bad: &mut bool) {

// Ensure source is allowed.
if !ALLOWED_SOURCES.contains(&&*source) {
tidy_error!(bad, "invalid source: {}", source);
//tidy_error!(bad, "invalid source: {}", source);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was only needed so I can test locally with the git deps; I'll remove it when we have a real usable chalk version upstream.

Copy link
Contributor

Choose a reason for hiding this comment

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

did you to remove this before it lands?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ugh whoops. Forgot about this. Will do that in a bit.`

@jackh726
Copy link
Member Author

jackh726 commented Jan 1, 2021

I'll fix the merge conflict when this is no longer blocked.

@JohnCSimon
Copy link
Member

@rustbot label: -S-waiting-on-review +S-waiting-on-author

@rustbot rustbot 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 19, 2021
@jackh726
Copy link
Member Author

@rustbot label: -S-waiting-on-author +S-blocked

This is waiting on Chalk.

@rustbot rustbot added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 19, 2021
@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

######################################################################## 100.0%
extracting /checkout/obj/build/cache/2020-11-19/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz
    Updating crates.io index
    Updating git repository `https://github.com/jackh726/chalk.git`
error: failed to get `chalk-ir` as a dependency of package `rustc_middle v0.0.0 (/checkout/compiler/rustc_middle)`
Caused by:
Caused by:
  failed to load source for dependency `chalk-ir`
Caused by:
Caused by:
  Unable to update https://github.com/jackh726/chalk.git?rev=984fea31e61bab06ec48155945d679731a6d6fec#984fea31
Caused by:
Caused by:
  object not found - no match for id (984fea31e61bab06ec48155945d679731a6d6fec); class=Odb (9); code=NotFound (-3)
Build completed unsuccessfully in 0:00:47

@bors
Copy link
Contributor

bors commented Feb 1, 2021

☔ The latest upstream changes (presumably #81591) made this pull request unmergeable. Please resolve the merge conflicts.

@jackh726
Copy link
Member Author

jackh726 commented Feb 1, 2021

welp, messed up submodules in rebase; will fix when chalk blockers are fixed

@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

######################################################################## 100.0%
extracting /checkout/obj/build/cache/2020-11-19/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz
    Updating crates.io index
    Updating git repository `https://github.com/jackh726/chalk.git`
error: failed to get `chalk-ir` as a dependency of package `rustc_middle v0.0.0 (/checkout/compiler/rustc_middle)`
Caused by:
Caused by:
  failed to load source for dependency `chalk-ir`
Caused by:
Caused by:
  Unable to update https://github.com/jackh726/chalk.git?rev=984fea31e61bab06ec48155945d679731a6d6fec#984fea31
Caused by:
Caused by:
  object not found - no match for id (984fea31e61bab06ec48155945d679731a6d6fec); class=Odb (9); code=NotFound (-3)
Build completed unsuccessfully in 0:00:42

@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

######################################################################## 100.0%
extracting /checkout/obj/build/cache/2020-11-19/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz
    Updating crates.io index
    Updating git repository `https://github.com/jackh726/chalk.git`
error: failed to get `chalk-ir` as a dependency of package `rustc_middle v0.0.0 (/checkout/compiler/rustc_middle)`
Caused by:
Caused by:
  failed to load source for dependency `chalk-ir`
Caused by:
Caused by:
  Unable to update https://github.com/jackh726/chalk.git?rev=984fea31e61bab06ec48155945d679731a6d6fec#984fea31
Caused by:
Caused by:
  object not found - no match for id (984fea31e61bab06ec48155945d679731a6d6fec); class=Odb (9); code=NotFound (-3)
Build completed unsuccessfully in 0:00:39

@jackh726 jackh726 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Feb 1, 2021
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 the comment by @jackh726

@nikomatsakis
Copy link
Contributor

@bors delegate+

@bors
Copy link
Contributor

bors commented Feb 2, 2021

✌️ @jackh726 can now approve this pull request

@nikomatsakis
Copy link
Contributor

nikomatsakis commented Feb 2, 2021

@jackh726 feel free to r=nikomatsakis once you've resolved this comment

@jackh726
Copy link
Member Author

jackh726 commented Feb 2, 2021

@bors r=nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 2, 2021

📋 Looks like this PR is still in progress, ignoring approval.

Hint: Remove [WIP] from this PR's title when it is ready for review.

@jackh726 jackh726 changed the title [WIP] Upgrade Chalk Upgrade Chalk Feb 2, 2021
@jackh726
Copy link
Member Author

jackh726 commented Feb 2, 2021

@bors r=nikomatsakis

@bors
Copy link
Contributor

bors commented Feb 2, 2021

📌 Commit a0622d6 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 Feb 2, 2021
m-ou-se added a commit to m-ou-se/rust that referenced this pull request Feb 2, 2021
Upgrade Chalk

~~Blocked on rust-lang/chalk#670~~
~~Now blocked on rust-lang/chalk#680 and release~~

In addition to the straight upgrade, I also tried to fix some tests by properly returning variables and max universes in the solution. Unfortunately, this actually triggers the same perf problem that rustc traits code runs into in `canonicalizer`. Not sure what the root cause of this problem is, or why it's supposed to be solved in chalk.

r? `@nikomatsakis`
jackh726 added a commit to jackh726/rust that referenced this pull request Feb 2, 2021
Upgrade Chalk

~~Blocked on rust-lang/chalk#670~~
~~Now blocked on rust-lang/chalk#680 and release~~

In addition to the straight upgrade, I also tried to fix some tests by properly returning variables and max universes in the solution. Unfortunately, this actually triggers the same perf problem that rustc traits code runs into in `canonicalizer`. Not sure what the root cause of this problem is, or why it's supposed to be solved in chalk.

r? ``@nikomatsakis``
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2021
Rollup of 14 pull requests

Successful merges:

 - rust-lang#80593 (Upgrade Chalk)
 - rust-lang#81260 (Add .editorconfig)
 - rust-lang#81455 (Add AArch64 big-endian and ILP32 targets)
 - rust-lang#81517 (Remove remnants of the santizer runtime crates from bootstrap)
 - rust-lang#81530 (sys: use `process::abort()` instead of `arch::wasm32::unreachable()`)
 - rust-lang#81544 (Add better diagnostic for unbounded Abst. Const)
 - rust-lang#81588 (Add doc aliases for "delete")
 - rust-lang#81603 (rustbuild: Don't build compiler twice for error-index-generator.)
 - rust-lang#81634 (Add long explanation e0521)
 - rust-lang#81636 (Directly use `Option<&[T]>` instead of converting from `Option<&Vec<T>>` later on)
 - rust-lang#81647 (Fix bug with assert!() calling the wrong edition of panic!().)
 - rust-lang#81655 (Improve wording of suggestion about accessing field)
 - rust-lang#81665 (Fix out of date `Scalar` documentation)
 - rust-lang#81671 (Add more associated type tests)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit c1623a2 into rust-lang:master Feb 3, 2021
@rustbot rustbot added this to the 1.51.0 milestone Feb 3, 2021
@jackh726 jackh726 deleted the chalk-upgrade branch February 3, 2021 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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