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

Bump bitflags to 1.0 #18967

Merged
merged 1 commit into from Oct 31, 2017
Merged

Bump bitflags to 1.0 #18967

merged 1 commit into from Oct 31, 2017

Conversation

@Eijebong
Copy link
Member

Eijebong commented Oct 20, 2017

See #18809

Still haven't had time to test it but it should fix the tests failures that appeared in m-c


This change is Reviewable

@highfive
Copy link

highfive commented Oct 20, 2017

Heads up! This PR modifies the following files:

  • @bholley: ports/geckolib/glue.rs, components/style/properties/longhand/background.mako.rs, components/style/properties/longhand/position.mako.rs, components/selectors/matching.rs, components/style/properties/computed_value_flags.rs and 49 more
  • @jgraham: components/webdriver_server/keys.rs
  • @canaltinova: components/style/properties/longhand/background.mako.rs, components/style/properties/longhand/position.mako.rs, components/style/properties/computed_value_flags.rs, components/style/stylist.rs, components/style/properties/gecko.mako.rs and 46 more
  • @emilio: ports/geckolib/glue.rs, components/style/properties/longhand/background.mako.rs, components/style/properties/longhand/position.mako.rs, components/layout/flow.rs, components/layout/wrapper.rs and 71 more
  • @fitzgen: components/script/textinput.rs, components/script/dom/htmlfieldsetelement.rs, components/script/dom/htmltextareaelement.rs, components/script/dom/validitystate.rs, components/script/dom/htmloptgroupelement.rs and 35 more
  • @KiChjang: components/script/textinput.rs, components/script/dom/htmlfieldsetelement.rs, components/script/dom/htmltextareaelement.rs, components/script/dom/validitystate.rs, components/script/dom/htmloptgroupelement.rs and 30 more
  • @asajeffrey: components/webdriver_server/keys.rs
  • @paulrouget: ports/glutin/window.rs, ports/glutin/Cargo.toml
@highfive
Copy link

highfive commented Oct 20, 2017

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@emilio
Copy link
Member

emilio commented Oct 20, 2017

./mach build-geckolib seems to fail:

error[E0425]: cannot find value `NS_DOCUMENT_STATE_RTL_LOCALE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:202:66
|
202 | NonTSPseudoClass::MozLocaleDir(..) => element_state::NS_DOCUMENT_STATE_RTL_LOCALE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error[E0425]: cannot find value `NS_DOCUMENT_STATE_WINDOW_INACTIVE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:203:67
|
203 | NonTSPseudoClass::MozWindowInactive => element_state::NS_DOCUMENT_STATE_WINDOW_INACTIVE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error: aborting due to 2 previous errors
error: Could not compile `style`.
To learn more, run the command again with --verbose.
[Warning] Could not generate notification! Optional Python module 'dbus' is not installed.
GeckoLib build completed in 0:01:46
The command "./mach build-geckolib" exited with 101.
42.68s$ ./mach test-stylo
Compiling size_of_test v0.0.1 (file:///home/travis/build/servo/servo/components/size_of_test)
Compiling stylo_tests v0.0.1 (file:///home/travis/build/servo/servo/tests/unit/stylo)
Compiling style v0.0.1 (file:///home/travis/build/servo/servo/components/style)
error[E0425]: cannot find value `NS_DOCUMENT_STATE_RTL_LOCALE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:202:66
|
202 | NonTSPseudoClass::MozLocaleDir(..) => element_state::NS_DOCUMENT_STATE_RTL_LOCALE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error[E0425]: cannot find value `NS_DOCUMENT_STATE_WINDOW_INACTIVE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:203:67
|
203 | NonTSPseudoClass::MozWindowInactive => element_state::NS_DOCUMENT_STATE_WINDOW_INACTIVE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`error[E0425]: cannot find value `NS_DOCUMENT_STATE_RTL_LOCALE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:202:66
|
202 | NonTSPseudoClass::MozLocaleDir(..) => element_state::NS_DOCUMENT_STATE_RTL_LOCALE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error[E0425]: cannot find value `NS_DOCUMENT_STATE_WINDOW_INACTIVE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:203:67
|
203 | NonTSPseudoClass::MozWindowInactive => element_state::NS_DOCUMENT_STATE_WINDOW_INACTIVE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error: aborting due to 2 previous errors
error: Could not compile `style`.
To learn more, run the command again with --verbose.
[Warning] Could not generate notification! Optional Python module 'dbus' is not installed.
GeckoLib build completed in 0:01:46
The command "./mach build-geckolib" exited with 101.
42.68s$ ./mach test-stylo
Compiling size_of_test v0.0.1 (file:///home/travis/build/servo/servo/components/size_of_test)
Compiling stylo_tests v0.0.1 (file:///home/travis/build/servo/servo/tests/unit/stylo)
Compiling style v0.0.1 (file:///home/travis/build/servo/servo/components/style)
error[E0425]: cannot find value `NS_DOCUMENT_STATE_RTL_LOCALE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:202:66
|
202 | NonTSPseudoClass::MozLocaleDir(..) => element_state::NS_DOCUMENT_STATE_RTL_LOCALE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
error[E0425]: cannot find value `NS_DOCUMENT_STATE_WINDOW_INACTIVE` in module `element_state`
--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:203:67
|
203 | NonTSPseudoClass::MozWindowInactive => element_state::NS_DOCUMENT_STATE_WINDOW_INACTIVE,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `element_state`
@Eijebong
Copy link
Member Author

Eijebong commented Oct 20, 2017

Yeah, I failed my rebase ^^

@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from 47cefb8 to 4b1190d Oct 20, 2017
@jdm
Copy link
Member

jdm commented Oct 20, 2017

Geckolib still fails :)

error[E0599]: no associated item named `NS_DOCUMENT_STATE_RTL_LOCALE` found for type `element_state::ElementState` in the current scope

--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:202:51

|

202 | NonTSPseudoClass::MozLocaleDir(..) => ElementState::NS_DOCUMENT_STATE_RTL_LOCALE,

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

|

= help: items from traits can only be used if the trait is implemented and in scope

= note: the following traits define an item `NS_DOCUMENT_STATE_RTL_LOCALE`, perhaps you need to implement one of them:

candidate #1: `<element_state::DocumentState as std::fmt::Debug>::fmt::__BitFlags`

candidate #2: `element_state::DocumentState::all::__BitFlags`

error[E0599]: no associated item named `NS_DOCUMENT_STATE_WINDOW_INACTIVE` found for type `element_state::ElementState` in the current scope

--> /home/travis/build/servo/servo/components/style/gecko/selector_parser.rs:203:52

|

203 | NonTSPseudoClass::MozWindowInactive => ElementState::NS_DOCUMENT_STATE_WINDOW_INACTIVE,

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

|

= help: items from traits can only be used if the trait is implemented and in scope

= note: the following traits define an item `NS_DOCUMENT_STATE_WINDOW_INACTIVE`, perhaps you need to implement one of them:

candidate #1: `<element_state::DocumentState as std::fmt::Debug>::fmt::__BitFlags`

candidate #2: `element_state::DocumentState::all::__BitFlags`

error: aborting due to 2 previous errors

error: Could not compile `style`.
@bors-servo
Copy link
Contributor

bors-servo commented Oct 20, 2017

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

@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from 4b1190d to 546a366 Oct 22, 2017
@bors-servo
Copy link
Contributor

bors-servo commented Oct 24, 2017

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

@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from 546a366 to b9eeaf7 Oct 27, 2017
@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from b9eeaf7 to 6794607 Oct 28, 2017
@Eijebong
Copy link
Member Author

Eijebong commented Oct 28, 2017

Fixed those 3 'layout/style' tests

@nox nox changed the title Bump bitflags to 1.0, take 2 Bump bitflags to 1.0 Oct 30, 2017
@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from 6794607 to 49b96f5 Oct 30, 2017
Copy link
Contributor

mbrubeck left a comment

r=mbrubeck with the merge conflict resolved

@Eijebong Eijebong force-pushed the Eijebong:bitflags2.0 branch from 49b96f5 to 29b4eec Oct 30, 2017
@Eijebong
Copy link
Member Author

Eijebong commented Oct 30, 2017

Rebased

@jdm
Copy link
Member

jdm commented Oct 30, 2017

@bors-servo: r=mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Oct 30, 2017

📌 Commit 29b4eec has been approved by mbrubeck

@mbrubeck
Copy link
Contributor

mbrubeck commented Oct 30, 2017

@bors-servo p=1

(high bitrot risk)

@bors-servo
Copy link
Contributor

bors-servo commented Oct 30, 2017

Testing commit 29b4eec with merge fe4139b...

bors-servo added a commit that referenced this pull request Oct 30, 2017
Bump bitflags to 1.0

See #18809

Still haven't had time to test it but it should fix the tests failures that appeared in m-c

<!-- 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/18967)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 31, 2017

@bors-servo bors-servo merged commit 29b4eec into servo:master Oct 31, 2017
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
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

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