Skip to content

Fix the build for NLL - #21356

Merged
bors-servo merged 2 commits into
masterfrom
nll
Aug 24, 2018
Merged

bors-servo merged 2 commits into
masterfrom
nll

Conversation

@SimonSapin

@SimonSapin SimonSapin commented Aug 7, 2018 •

Copy link
Copy Markdown
Member

@highfive

highfive commented Aug 7, 2018

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/webglrenderingcontext.rs, components/script/dom/imagedata.rs, components/script/dom/window.rs
  • @KiChjang: components/script/dom/webglrenderingcontext.rs, components/script/dom/imagedata.rs, components/script/dom/window.rs
  • @emilio: components/layout/table.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 7, 2018
@highfive

highfive commented Aug 7, 2018

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout and script code, but no tests are modified. Please consider adding a test!

@emilio emilio left a comment

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.

Looks good :)

let inline_size = self.column_computed_inline_sizes[index].size.0;
self.column_computed_inline_sizes[index].size +=
remaining_inline_size.scale_by(
self.column_computed_inline_sizes[index].size.0 as f32 / total_minimum_size);

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 looks a bit like a regression doesn't it?

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.

This is possibly rust-lang/rust#47349, which I'm working on.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Per rust-lang/rust#47349 (comment) the new borrowck behavior is considered correct. That issue is only still open in order to improve the error message.


let iter = TableCellStyleIterator::new(&self);
for mut style in iter {
for style in iter {

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.

Just curious, are these just to avoid warnings?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I suppose that they were false negatives for the warning under AST-borrowck.

@SimonSapin

Copy link
Copy Markdown
Member Author

Oops I accidentally pushed this to master :/ Thanks @jdm for taking care of reverting. Don’t we have github settings to prevent this from happening, though?

@SimonSapin

Copy link
Copy Markdown
Member Author

Per #21358 it looks like unrelated changes in url fixed some tests, so this PR will need to update expectations.

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit e510dea with merge 347d90c...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 8, 2018
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Aug 8, 2018
@SimonSapin

Copy link
Copy Markdown
Member Author

This should be landable now. r? @emilio (or anyone)

@highfive highfive assigned emilio and unassigned paulrouget Aug 8, 2018
@jdm

jdm commented Aug 8, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ff77763 has been approved by jdm

@highfive highfive assigned jdm and unassigned emilio Aug 8, 2018
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 8, 2018
@jdm

jdm commented Aug 8, 2018

Copy link
Copy Markdown
Member

@bors-servo retry

@jdm jdm closed this Aug 8, 2018
@jdm jdm reopened this Aug 8, 2018
@jdm

jdm commented Aug 8, 2018

Copy link
Copy Markdown
Member

@bors-servo force r+

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Aug 16, 2018
@jdm jdm mentioned this pull request Aug 16, 2018
@SimonSapin

Copy link
Copy Markdown
Member Author

I’ve backported the NLL fix in the url crate as 1.6.1, to avoid bringing in (in this PR) unrelated changes.

There is now the gstreamer crate whose current versions fail to build with NLL. This is fixed in git upstream, but not yet on crates.io versions. I’ve asked for a backport: sdroege/gstreamer-rs@dba110e

Still, the rest of this PR can be landed without waiting for that.

@bors-servo r=jdm

(Carrying previous r+ since the PR is now a subset of the changes since the previous review.)

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 6539b18 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6539b18 with merge ac832f8...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - android-x86

@jdm jdm mentioned this pull request Aug 23, 2018
@SimonSapin

Copy link
Copy Markdown
Member Author

Same as before:

 5:03.86 ERROR Traceback (most recent call last):
  File "/home/servo/buildbot/slave/android-x86/build/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/protocol.py", line 47, in setup
    self.connect()
  File "/home/servo/buildbot/slave/android-x86/build/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/executors/executorservodriver.py", line 97, in connect
    wait_for_service((self.host, self.port), timeout=self.init_timeout)
  File "/home/servo/buildbot/slave/android-x86/build/tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/webdriver_server.py", line 265, in wait_for_service
    raise socket.error("Service is unavailable: %s:%i" % addr)
error: Service is unavailable: 127.0.0.1:4444

So my assumption that this was due to changes in the URL crate (perhaps in the webdriver server implementation) was not correct. This issue will need more investigation. (getopts might be another lead to follow.)

@jdm

jdm commented Aug 23, 2018

Copy link
Copy Markdown
Member

@SimonSapin According to my try pushes in #21501 it is definitely getopts' fault.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#78.

@SimonSapin

Copy link
Copy Markdown
Member Author

Sigh. getopts silently removed support for --webdriver 4444 (instead of --webdriver=4444) in a micro version number increment.

Added = in a few places, r?

@jdm

jdm commented Aug 24, 2018

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 5d40886 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 5d40886 with merge dcc8a6e...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-dev

@SimonSapin

Copy link
Copy Markdown
Member Author

WPT manifest updated.

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 1333b6e has been approved by jdm

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#78.

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 1333b6e with merge 3955119...

@bors-servo

Copy link
Copy Markdown
Contributor

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Error syncing changes upstream. Logs saved in error-snapshot-1535130643349.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants