style_traits: error[E0425]: cannot find value `MAX_LENGTH` in module `cssparser_internal`
Categories
(Firefox :: Untriaged, defect)
Tracking
()
People
(Reporter: whissi, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Trying to build firefox-81.0.1 and 78.3.1 ESR with rust-1.47.0 fails for style_traits with
Actual results:
2:46.52 Compiling style_traits v0.0.1 (/var/tmp/portage/www-client/firefox-78.3.1/work/firefox-78.3.1/servo/components/style_traits)
2:46.52 RunningCARGO=/opt/rust-bin-1.47.0/bin/cargo-bin-1.47.0 CARGO_CRATE_NAME=style_traits CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox-78.3.1/servo/components/style_traits CARGO_PKG_AUTHORS='The Servo Project Developers' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=style_traits CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.0.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps:/opt/rust-bin-1.47.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name style_traits servo/components/style_traits/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="gecko"' -C metadata=c485b704c8e30ce0 -C extra-filename=-c485b704c8e30ce0 --out-dir /var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox-78.3.1/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps --extern app_units=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libapp_units-d94a4c937f68f6b2.rmeta --extern bitflags=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libbitflags-dfe5110262fdfb75.rmeta --extern cssparser=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libcssparser-954867ceac68e135.rmeta --extern euclid=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libeuclid-a100af0541983286.rmeta --extern lazy_static=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/liblazy_static-4f32eec0b3c4c54f.rmeta --extern malloc_size_of=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libmalloc_size_of-dacfc11a9dd01050.rmeta --extern malloc_size_of_derive=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps/libmalloc_size_of_derive-f1e98658e9f216e2.so --extern selectors=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libselectors-fd83fe1b80d93d2c.rmeta --extern serde=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libserde-342da01a8d272868.rmeta --extern servo_arc=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libservo_arc-cb1b6ca92e652c46.rmeta --extern to_shmem=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libto_shmem-4a3b9f50f56dc903.rmeta --extern to_shmem_derive=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps/libto_shmem_derive-d2152cc641da8f88.so -C opt-level=2 --cap-lints warn -C codegen-units=1
2:46.69 error: expected literal
2:46.69 --> servo/components/style_traits/viewport.rs:12:1
2:46.69 |
2:46.69 12 | / define_css_keyword_enum! {
2:46.69 13 | | pub enum UserZoom {
2:46.69 14 | | Zoom = "zoom",
2:46.69 15 | | Fixed = "fixed",
2:46.69 16 | | }
2:46.69 17 | | }
2:46.69 | |^
2:46.69 |
2:46.69 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2:46.69 error: expected literal
2:46.69 --> servo/components/style_traits/viewport.rs:19:1
2:46.69 |
2:46.69 19 | / define_css_keyword_enum! {
2:46.69 20 | | pub enum Orientation {
2:46.69 21 | | Auto = "auto",
2:46.69 22 | | Portrait = "portrait",
2:46.69 23 | | Landscape = "landscape",
2:46.69 24 | | }
2:46.69 25 | | }
2:46.69 | |^
2:46.69 |
2:46.69 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2:46.69 error[E0425]: cannot find valueMAX_LENGTH
in modulecssparser_internal
2:46.69 --> servo/components/style_traits/viewport.rs:12:1
2:46.69 |
2:46.69 12 | / define_css_keyword_enum! {
2:46.69 13 | | pub enum UserZoom {
2:46.69 14 | | Zoom = "zoom",
2:46.69 15 | | Fixed = "fixed",
2:46.69 16 | | }
2:46.69 17 | | }
2:46.69 | |^ not found incssparser_internal
2:46.69 |
2:46.69 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2:46.69 error[E0425]: cannot find valueMAX_LENGTH
in modulecssparser_internal
2:46.69 --> servo/components/style_traits/viewport.rs:19:1
2:46.69 |
2:46.69 19 | / define_css_keyword_enum! {
2:46.69 20 | | pub enum Orientation {
2:46.69 21 | | Auto = "auto",
2:46.69 22 | | Portrait = "portrait",
2:46.69 23 | | Landscape = "landscape",
2:46.69 24 | | }
2:46.69 25 | | }
2:46.69 | |^ not found incssparser_internal
2:46.69 |
2:46.69 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2:46.69 warning: ignoring -C extra-filename flag due to -o flag
2:46.69 error: aborting due to 4 previous errors; 1 warning emitted
2:46.70 For more information about this error, tryrustc --explain E0425
.
2:46.70 error: could not compilestyle_traits
.
2:46.70 Caused by:
2:46.70 process didn't exit successfully:CARGO=/opt/rust-bin-1.47.0/bin/cargo-bin-1.47.0 CARGO_CRATE_NAME=style_traits CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox-78.3.1/servo/components/style_traits CARGO_PKG_AUTHORS='The Servo Project Developers' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=style_traits CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.0.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps:/opt/rust-bin-1.47.0/lib' /usr/bin/sccache /usr/bin/rustc --crate-name style_traits servo/components/style_traits/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="gecko"' -C metadata=c485b704c8e30ce0 -C extra-filename=-c485b704c8e30ce0 --out-dir /var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox-78.3.1/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps --extern app_units=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libapp_units-d94a4c937f68f6b2.rmeta --extern bitflags=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libbitflags-dfe5110262fdfb75.rmeta --extern cssparser=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libcssparser-954867ceac68e135.rmeta --extern euclid=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libeuclid-a100af0541983286.rmeta --extern lazy_static=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/liblazy_static-4f32eec0b3c4c54f.rmeta --extern malloc_size_of=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libmalloc_size_of-dacfc11a9dd01050.rmeta --extern malloc_size_of_derive=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps/libmalloc_size_of_derive-f1e98658e9f216e2.so --extern selectors=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libselectors-fd83fe1b80d93d2c.rmeta --extern serde=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libserde-342da01a8d272868.rmeta --extern servo_arc=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libservo_arc-cb1b6ca92e652c46.rmeta --extern to_shmem=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/x86_64-unknown-linux-gnu/release/deps/libto_shmem-4a3b9f50f56dc903.rmeta --extern to_shmem_derive=/var/tmp/portage/www-client/firefox-78.3.1/work/firefox_build/release/deps/libto_shmem_derive-d2152cc641da8f88.so -C opt-level=2 --cap-lints warn -C codegen-units=1
(exit code: 1)
2:46.70 warning: build failed, waiting for other jobs to finish...
Expected results:
No build error.
Comment 1•4 years ago
|
||
This was fixed in bug 1663715, see https://github.com/rust-lang/rust/issues/76480.
Comment 2•4 years ago
|
||
Will try to uplift the patch to esr, but I suspect 81.0.1 won't be patched...
Description
•