diff --git a/examples/gstreamer-player/build.rs b/examples/gstreamer-player/build.rs index 75fbf2971a3..fcef775481e 100644 --- a/examples/gstreamer-player/build.rs +++ b/examples/gstreamer-player/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: MIT +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + use cfg_aliases::cfg_aliases; fn main() { diff --git a/internal/backends/linuxkms/build.rs b/internal/backends/linuxkms/build.rs index c937bb7a6a6..3f55780ca8d 100644 --- a/internal/backends/linuxkms/build.rs +++ b/internal/backends/linuxkms/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + use cfg_aliases::cfg_aliases; fn main() { diff --git a/internal/backends/selector/build.rs b/internal/backends/selector/build.rs index 1694519589b..709be57be3e 100644 --- a/internal/backends/selector/build.rs +++ b/internal/backends/selector/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + // cSpell: ignore qttype use std::path::Path; diff --git a/internal/backends/testing/build.rs b/internal/backends/testing/build.rs index eeeed860c7f..13aef0d7d99 100644 --- a/internal/backends/testing/build.rs +++ b/internal/backends/testing/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + // cSpell: ignore rsplit Sfixed fn main() { cfg_aliases::cfg_aliases! { diff --git a/internal/backends/winit/build.rs b/internal/backends/winit/build.rs index f5ee58b0465..aee66ada5a0 100644 --- a/internal/backends/winit/build.rs +++ b/internal/backends/winit/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + use cfg_aliases::cfg_aliases; fn main() { diff --git a/internal/common/builtin_structs.rs b/internal/common/builtin_structs.rs index e19b5b6c45d..fead7d3cfa3 100644 --- a/internal/common/builtin_structs.rs +++ b/internal/common/builtin_structs.rs @@ -26,7 +26,7 @@ #[macro_export] macro_rules! for_each_builtin_structs { ($macro:ident) => { - $macro![ + $macro! { /// The `KeyboardModifiers` struct provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc. /// It is provided as part of `KeyEvent`'s `modifiers` field. /// @@ -173,6 +173,6 @@ macro_rules! for_each_builtin_structs { /// The bottom edge value bottom: Coord, } - ]; + } }; } diff --git a/internal/common/enums.rs b/internal/common/enums.rs index bd94a52951b..da6aad44acf 100644 --- a/internal/common/enums.rs +++ b/internal/common/enums.rs @@ -23,7 +23,7 @@ #[macro_export] macro_rules! for_each_enums { ($macro:ident) => { - $macro![ + $macro! { /// This enum describes the different types of alignment of text along the horizontal axis of a `Text` or `StyledText` element. #[non_exhaustive] enum TextHorizontalAlignment { @@ -684,6 +684,6 @@ macro_rules! for_each_enums { /// This variant is reported when the operating system is none of the above. Other, } - ]; + } }; } diff --git a/internal/renderers/skia/build.rs b/internal/renderers/skia/build.rs index e5c66df8d4e..ec5161c65d4 100644 --- a/internal/renderers/skia/build.rs +++ b/internal/renderers/skia/build.rs @@ -1,6 +1,11 @@ // Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 +// The expansion of cfg_aliases! places macro-emitted semicolons in expression +// position, which nightly rejects by default since 2026-07. Allow it until a +// fixed cfg-aliases release is available. +#![allow(semicolon_in_expressions_from_macros)] + use cfg_aliases::cfg_aliases; fn main() {