Skip to content

Allow semicolon_in_expressions_from_macros lint in build scripts usin…#12505

Merged
tronical merged 2 commits into
masterfrom
simon/cfg-alias-workaround
Jul 16, 2026
Merged

Allow semicolon_in_expressions_from_macros lint in build scripts usin…#12505
tronical merged 2 commits into
masterfrom
simon/cfg-alias-workaround

Conversation

@tronical

Copy link
Copy Markdown
Member

…g cfg_aliases

Rust nightly from 2026-07-16 on turns this lint into a deny-by-default error, and the expansion of the cfg_aliases! macro trips it. This broke the rust-cpp-docs and cpp_cmake nightly CI jobs when compiling the i-slint-renderer-skia build script; the other build scripts using cfg_aliases would fail the same way once reached.

Allow the lint in the affected build scripts until the upstream fix (katharostech/cfg_aliases#15) is merged and released.

tronical added 2 commits July 16, 2026 09:56
…g cfg_aliases

Rust nightly from 2026-07-16 on turns this lint into a deny-by-default
error, and the expansion of the cfg_aliases! macro trips it. This broke
the rust-cpp-docs and cpp_cmake nightly CI jobs when compiling the
i-slint-renderer-skia build script; the other build scripts using
cfg_aliases would fail the same way once reached.

Allow the lint in the affected build scripts until the upstream fix
(katharostech/cfg_aliases#15) is merged and
released.
…h_builtin_structs

Rust nightly from 2026-07-16 on rejects macro expansions that leave a
trailing semicolon in expression position (deny-by-default
semicolon_in_expressions_from_macros lint). for_each_enums! is used in
expression position in the interpreter's dynamic_item_tree.rs, which
broke the rust-cpp-docs CI job.

Expand to a brace-delimited invocation without a trailing semicolon,
which is valid in both item and expression position, like for_each_keys
already does. for_each_builtin_structs had the same latent pattern, so
fix it as well even though all its current callers are in item or
statement position.
@tronical
tronical enabled auto-merge (rebase) July 16, 2026 09:20
@tronical
tronical disabled auto-merge July 16, 2026 09:20
@tronical
tronical merged commit 6597117 into master Jul 16, 2026
50 checks passed
@tronical
tronical deleted the simon/cfg-alias-workaround branch July 16, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants