diff --git a/servo/components/style/build.rs b/servo/components/style/build.rs index 2e2cc75558baa..5318d414ebba5 100644 --- a/servo/components/style/build.rs +++ b/servo/components/style/build.rs @@ -644,6 +644,52 @@ crate " ) . +envs +( +if +std +: +: +mem +: +: +size_of +: +: +< +Option +< +bool +> +> +( +) += += +1 +{ +vec +! +[ +( +" +RUSTC_HAS_PR45225 +" +" +1 +" +) +] +} +else +{ +vec +! +[ +] +} +) +. status ( ) diff --git a/servo/components/style/properties/build.py b/servo/components/style/properties/build.py index 9358c9bb9d343..061e9e07b6f3b 100644 --- a/servo/components/style/properties/build.py +++ b/servo/components/style/properties/build.py @@ -258,6 +258,19 @@ __file__ = template + +RUSTC_HAS_PR45225 += +os +. +environ +. +get +( +" +RUSTC_HAS_PR45225 +" +) ) if diff --git a/servo/components/style/properties/data.py b/servo/components/style/properties/data.py index 814c93f7b2da1..da775ea6b2a7b 100644 --- a/servo/components/style/properties/data.py +++ b/servo/components/style/properties/data.py @@ -1107,6 +1107,19 @@ False " ] +" +Unexpected +value +for +boolean +arguement +: +" ++ +repr +( +arg +) return arg diff --git a/servo/components/style/properties/longhand/inherited_svg.mako.rs b/servo/components/style/properties/longhand/inherited_svg.mako.rs index f98012adfc632..d05f07612328d 100644 --- a/servo/components/style/properties/longhand/inherited_svg.mako.rs +++ b/servo/components/style/properties/longhand/inherited_svg.mako.rs @@ -564,9 +564,8 @@ gecko " boxed = -" -True -" +not +RUSTC_HAS_PR45225 animation_value_type = " @@ -922,9 +921,8 @@ gecko " boxed = -" -True -" +not +RUSTC_HAS_PR45225 animation_value_type = " diff --git a/servo/components/style/properties/longhand/pointing.mako.rs b/servo/components/style/properties/longhand/pointing.mako.rs index 8d3a67a4d861c..0c5a784bc4f79 100644 --- a/servo/components/style/properties/longhand/pointing.mako.rs +++ b/servo/components/style/properties/longhand/pointing.mako.rs @@ -1516,7 +1516,8 @@ Auto " boxed = -True +not +RUSTC_HAS_PR45225 ignored_when_colors_disabled = True diff --git a/servo/tests/unit/stylo/build.rs b/servo/tests/unit/stylo/build.rs index 3f550c623f976..c2fd1a6349865 100644 --- a/servo/tests/unit/stylo/build.rs +++ b/servo/tests/unit/stylo/build.rs @@ -50,6 +50,42 @@ main ( ) { +if +std +: +: +mem +: +: +size_of +: +: +< +Option +< +bool +> +> +( +) += += +1 +{ +println +! +( +" +cargo +: +rustc +- +cfg += +rustc_has_pr45225 +" +) +} let root_path = diff --git a/servo/tests/unit/stylo/size_of.rs b/servo/tests/unit/stylo/size_of.rs index 9c0b8475a8dce..3767dd41e62f4 100644 --- a/servo/tests/unit/stylo/size_of.rs +++ b/servo/tests/unit/stylo/size_of.rs @@ -416,7 +416,19 @@ image : : ImageLayer +if +cfg +! +( +rustc_has_pr45225 +) +{ +40 +} +else +{ 48 +} ) ; size_of_test @@ -430,6 +442,18 @@ image : : ImageLayer +if +cfg +! +( +rustc_has_pr45225 +) +{ +40 +} +else +{ 48 +} ) ;