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

Clean up some iterators #12861

Merged
merged 2 commits into from Aug 20, 2016
Merged

Clean up some iterators #12861

merged 2 commits into from Aug 20, 2016

Conversation

@nox
Copy link
Member

nox commented Aug 14, 2016

This change is Reviewable

nox added 2 commits Aug 14, 2016
@highfive
Copy link

highfive commented Aug 14, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/cssstyledeclaration.rs
@highfive
Copy link

highfive commented Aug 14, 2016

warning Warning warning

  • These commits modify layout and script code, but no tests are modified. Please consider adding a test!
@nox
Copy link
Member Author

nox commented Aug 14, 2016

According to @eddyb, impl Trait isn't supposed to work when lifetimes are involved. Cc @nikomatsakis.

@eddyb
Copy link
Contributor

eddyb commented Aug 14, 2016

It's supposed to (when the lifetimes are explicit) but I couldn't get anything to compile. Apparently the Item = &'a T projection bound forces the lifetime in the returned type to be exactly 'a.

// TODO: important is hardcoded to false because method does not implement it yet
let serialized_value = shorthand.serialize_shorthand_value_to_string(Map(list.iter()), false);
let serialized_value = shorthand.serialize_shorthand_value_to_string(
list.iter().map(Deref::deref as fn(_) -> _), false);

This comment has been minimized.

Copy link
@notriddle

notriddle Aug 15, 2016

Contributor

This use of a function pointer instead of the function's own anonymous type is to work around th fact that the latter isn't clone, right?

This comment has been minimized.

Copy link
@nox

nox Aug 15, 2016

Author Member

Yes, that's what I've written in the commit message.

@Ms2ger
Copy link
Contributor

Ms2ger commented Aug 16, 2016

@highfive highfive assigned Ms2ger and unassigned jdm Aug 16, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

📌 Commit 1637b0b has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

Testing commit 1637b0b with merge d46bf6f...

bors-servo added a commit that referenced this pull request Aug 16, 2016
Clean up some iterators

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12861)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 16, 2016

  ▶ Unexpected subtest result in /html/browsers/browsing-the-web/history-traversal/browsing_context_name.html:
  └ PASS [expected FAIL] Retaining window.name on history traversal
@nox
Copy link
Member Author

nox commented Aug 16, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

Previous build results for arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 16, 2016

  ▶ Unexpected subtest result in /html/browsers/browsing-the-web/history-traversal/browsing_context_name.html:
  └ PASS [expected FAIL] Retaining window.name on history traversal
@nox
Copy link
Member Author

nox commented Aug 16, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

Testing commit 1637b0b with merge bd446c5...

bors-servo added a commit that referenced this pull request Aug 16, 2016
Clean up some iterators

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12861)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 16, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 16, 2016

  ▶ Unexpected subtest result in /html/browsers/browsing-the-web/history-traversal/browsing_context_name.html:
  └ PASS [expected FAIL] Retaining window.name on history traversal
@nox
Copy link
Member Author

nox commented Aug 18, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 18, 2016

Testing commit 1637b0b with merge 4ca8370...

bors-servo added a commit that referenced this pull request Aug 18, 2016
Clean up some iterators

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12861)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 18, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 18, 2016

  ▶ Unexpected subtest result in /html/browsers/browsing-the-web/history-traversal/browsing_context_name.html:
  └ PASS [expected FAIL] Retaining window.name on history traversal
@nox
Copy link
Member Author

nox commented Aug 18, 2016

Suddenly it doesn't look like an intermittent anymore, but how could my changes do that..?

@notriddle
Copy link
Contributor

notriddle commented Aug 18, 2016

Change the expectation to PASS?

@nox
Copy link
Member Author

nox commented Aug 20, 2016

@bors-servo r=Ms2ger

The test was disabled.

@bors-servo
Copy link
Contributor

bors-servo commented Aug 20, 2016

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
  • There's another pull request that is currently being tested, blocking this pull request: #12941
@bors-servo
Copy link
Contributor

bors-servo commented Aug 20, 2016

📌 Commit 1637b0b has been approved by Ms2ger

@nox
Copy link
Member Author

nox commented Aug 20, 2016

Ugh.

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Aug 20, 2016

Testing commit 1637b0b with merge 8a75810...

bors-servo added a commit that referenced this pull request Aug 20, 2016
Clean up some iterators

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12861)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 20, 2016

@bors-servo bors-servo merged commit 1637b0b into servo:master Aug 20, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.